tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
enpass-mac: add version check
Dimitar Nestorov
1 year ago
e291aba4
7ab2818d
+14
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
en
enpass-mac
package.nix
+14
pkgs/by-name/en/enpass-mac/package.nix
···
10
10
cacert,
11
11
gawk,
12
12
common-updater-scripts,
13
13
+
versionCheckHook,
14
14
+
writeShellScript,
15
15
+
coreutils,
16
16
+
xcbuild,
13
17
}:
14
18
15
19
stdenvNoCC.mkDerivation (finalAttrs: {
···
64
68
update-source-version enpass-mac "$version"
65
69
'';
66
70
});
71
71
+
72
72
+
nativeInstallCheckInputs = [ versionCheckHook ];
73
73
+
versionCheckProgram = writeShellScript "version-check" ''
74
74
+
marketing_version=$(${xcbuild}/bin/PlistBuddy -c "Print :CFBundleShortVersionString" "$1" | ${coreutils}/bin/tr -d '"')
75
75
+
build_version=$(${xcbuild}/bin/PlistBuddy -c "Print :CFBundleVersion" "$1")
76
76
+
77
77
+
echo $marketing_version.$build_version
78
78
+
'';
79
79
+
versionCheckProgramArg = [ "${placeholder "out"}/Applications/Enpass.app/Contents/Info.plist" ];
80
80
+
doInstallCheck = true;
67
81
68
82
meta = {
69
83
description = "Choose your own safest place to store passwords";