summary refs log tree commit diff
path: root/pkgs/applications/office/minetime
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-04-23 20:43:04 -0500
committerWill Dietz <w@wdtz.org>2019-04-23 20:43:04 -0500
commitfc6c5fdfed9653c2c1be13d3e3896049291dac60 (patch)
treed196e0f6e5baf4f80dc4a8c542fb0333290b3ea3 /pkgs/applications/office/minetime
parent9db228d5065b6f660b4279f0a0903134097c0adc (diff)
downloadnixpkgs-fc6c5fdfed9653c2c1be13d3e3896049291dac60.tar
nixpkgs-fc6c5fdfed9653c2c1be13d3e3896049291dac60.tar.gz
nixpkgs-fc6c5fdfed9653c2c1be13d3e3896049291dac60.tar.bz2
nixpkgs-fc6c5fdfed9653c2c1be13d3e3896049291dac60.tar.lz
nixpkgs-fc6c5fdfed9653c2c1be13d3e3896049291dac60.tar.xz
nixpkgs-fc6c5fdfed9653c2c1be13d3e3896049291dac60.tar.zst
nixpkgs-fc6c5fdfed9653c2c1be13d3e3896049291dac60.zip
minetime: 1.4.12 -> 1.5.1, better entrypoint name, drop unused 32bit
https://github.com/marcoancona/MineTime/releases/tag/v1.5.1
https://github.com/marcoancona/MineTime/releases/tag/v1.5.0
Diffstat (limited to 'pkgs/applications/office/minetime')
-rw-r--r--pkgs/applications/office/minetime/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/applications/office/minetime/default.nix b/pkgs/applications/office/minetime/default.nix
index 5a977bc4532..85e8bc131ce 100644
--- a/pkgs/applications/office/minetime/default.nix
+++ b/pkgs/applications/office/minetime/default.nix
@@ -1,23 +1,25 @@
-{ appimageTools, fetchurl, lib }:
+{ appimageTools, fetchurl, lib, gsettings-desktop-schemas, gtk3 }:
 
 let
-  pname = "MineTime";
-  version = "1.4.12";
+  pname = "minetime";
+  version = "1.5.1";
 in
 appimageTools.wrapType2 rec {
   name = "${pname}-${version}";
   src = fetchurl {
     url = "https://github.com/marcoancona/MineTime/releases/download/v${version}/${name}-x86_64.AppImage";
-    sha256 = "1gpscil003ja35c9dax33prf5wabcwsbvrbzclpwsw5b9i2sgbpw";
+    sha256 = "0099cq4p7j01bzs7q79y9xi7g6ji17v9g7cykfjggwsgqfmvd0hz";
   };
 
-  extraPkgs = p: p.atomEnv.packages;
-
-  # Ideally inherit this, but it needs to be set or the app fails to launch.
   profile = ''
-    export LC_ALL=C.UTF8
+    export LC_ALL=C.UTF-8
+    export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
   '';
 
+  multiPkgs = null; # no 32bit needed
+  extraPkgs = appimageTools.defaultFhsEnvArgs.multiPkgs;
+  extraInstallCommands = "mv $out/bin/{${name},${pname}}";
+
   meta = with lib; {
     description = "Modern, intuitive and smart calendar application";
     homepage = https://minetime.ai;