Skip to content

Commit 4477eb2

Browse files
authored
keyguard: 1.6.1 -> 1.6.2 (#347050)
2 parents 7563af8 + 50631a0 commit 4477eb2

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

pkgs/by-name/ke/keyguard/deps.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/by-name/ke/keyguard/package.nix

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
fetchFromGitHub,
55
gradle,
66
binutils,
7-
dpkg,
87
fakeroot,
98
jdk17,
109
fontconfig,
@@ -17,31 +16,42 @@
1716
cups,
1817
lcms2,
1918
alsa-lib,
19+
makeDesktopItem,
20+
copyDesktopItems,
2021
}:
2122
let
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+
];
2434
in
2535
stdenv.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

0 commit comments

Comments
 (0)