File tree Expand file tree Collapse file tree 2 files changed +25
-21
lines changed Expand file tree Collapse file tree 2 files changed +25
-21
lines changed Original file line number Diff line number Diff line change 44 fetchFromGitHub ,
55 gradle ,
66 binutils ,
7- dpkg ,
87 fakeroot ,
98 jdk17 ,
109 fontconfig ,
1716 cups ,
1817 lcms2 ,
1918 alsa-lib ,
19+ makeDesktopItem ,
20+ copyDesktopItems ,
2021} :
2122let
22- gradleBuildTask = ":desktopApp:packageDeb " ;
23+ gradleBuildTask = ":desktopApp:createDistributable " ;
2324 gradleUpdateTask = gradleBuildTask ;
25+ desktopItems = [
26+ ( makeDesktopItem {
27+ name = "Keyguard" ;
28+ exec = "Keyguard" ;
29+ icon = "Keyguard" ;
30+ comment = "Keyguard" ;
31+ desktopName = "Keyguard" ;
32+ } )
33+ ] ;
2434in
2535stdenv . mkDerivation ( finalAttrs : {
2636 pname = "keyguard" ;
27- version = "1.6.1 " ;
37+ version = "1.6.2 " ;
2838
2939 src = fetchFromGitHub {
3040 owner = "AChep" ;
3141 repo = "keyguard-app" ;
32- rev = "25b505f7679e40bd42f5ff59218deb0f2aac2083 " ;
33- hash = "sha256-+WXeHcILukCheUzD59ffP+eMLXF8T5qm3NWNUugWIqg =" ;
42+ rev = "eb36b853a7ac67a0f72d5684e6751d41969b07dd " ;
43+ hash = "sha256-tMNc8OlYsiYmVtac2jngvrFZjgI7eNFVIxXUfIJUdK4 =" ;
3444 } ;
3545
36- inherit gradleBuildTask gradleUpdateTask ;
46+ inherit gradleBuildTask gradleUpdateTask desktopItems ;
3747
3848 nativeBuildInputs = [
3949 gradle
4050 binutils
41- dpkg
4251 fakeroot
4352 jdk17
4453 autoPatchelfHook
54+ copyDesktopItems
4555 ] ;
4656
4757 mitmCache = gradle . fetchDeps {
@@ -75,13 +85,7 @@ stdenv.mkDerivation (finalAttrs: {
7585 runHook preInstall
7686
7787 mkdir -p $out/
78- dpkg -x ./desktopApp/build/compose/binaries/main/deb/*.deb $out
79- mv $out/opt/keyguard/* -t $out/
80- rm -r $out/opt
81- install -Dm0644 $out/lib/*-Keyguard.desktop $out/share/applications/Keyguard.desktop
82- substituteInPlace $out/share/applications/Keyguard.desktop \
83- --replace-fail 'Exec=/opt/keyguard/bin/Keyguard' 'Exec=Keyguard' \
84- --replace-fail 'Icon=/opt/keyguard/lib/Keyguard.png' 'Icon=Keyguard'
88+ cp -a ./desktopApp/build/compose/binaries/main/app/*/* $out/
8589 install -Dm0644 $out/lib/Keyguard.png $out/share/pixmaps/Keyguard.png
8690
8791 runHook postInstall
You can’t perform that action at this time.
0 commit comments