@@ -1,50 +0,0 @@
1−{ appimageTools, fetchurl, lib, runCommand, stdenv, gsettings-desktop-schemas, gtk3, zlib }:
2−
3−let
4− name = "${pname}-${version}";
5− pname = "minetime";
6− version = "1.8.10";
7− appimage = fetchurl {
8− url = "https://github.com/marcoancona/MineTime/releases/download/v${version}/${name}.AppImage";
9− sha256 = "1a80lgk6v9kv9xb2y3i08gk25jm0pqyl57kfr5p1rbc33prhmcgw";
10− };
11− extracted = appimageTools.extractType2 {
12− inherit name;
13− src = appimage;
14− };
15− patched = runCommand "minetime-patchelf" {} ''
16− cp -av ${extracted} $out
17−
18− x=$out/resources/app.asar.unpacked/services/scheduling/dist/MinetimeSchedulingService
19− chmod +w $x
20−
21− patchelf \
22− --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
23− --replace-needed libz.so.1 ${zlib}/lib/libz.so.1 \
24− $x
25− '';
26−in
27−appimageTools.wrapAppImage rec {
28− inherit name;
29− src = patched;
30−
31− profile = ''
32− export LC_ALL=C.UTF-8
33− export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
34− '';
35−
36− multiPkgs = null; # no 32bit needed
37− extraPkgs = ps:
38− appimageTools.defaultFhsEnvArgs.multiPkgs ps
39− ++ (with ps; [ at-spi2-core at-spi2-atk libsecret libnotify ]);
40− extraInstallCommands = "mv $out/bin/{${name},${pname}}";
41−
42− meta = with lib; {
43− description = "Modern, intuitive and smart calendar application";
44− homepage = "https://minetime.ai";
45− license = licenses.unfree;
46− # Should be cross-platform, but for now we just grab the appimage
47− platforms = [ "x86_64-linux" ];
48− maintainers = with maintainers; [ dtzWill ];
49− };
50−}