tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
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
cacert,
11
gawk,
12
common-updater-scripts,
0
0
0
0
13
}:
14
15
stdenvNoCC.mkDerivation (finalAttrs: {
···
64
update-source-version enpass-mac "$version"
65
'';
66
});
0
0
0
0
0
0
0
0
0
0
67
68
meta = {
69
description = "Choose your own safest place to store passwords";
···
10
cacert,
11
gawk,
12
common-updater-scripts,
13
+
versionCheckHook,
14
+
writeShellScript,
15
+
coreutils,
16
+
xcbuild,
17
}:
18
19
stdenvNoCC.mkDerivation (finalAttrs: {
···
68
update-source-version enpass-mac "$version"
69
'';
70
});
71
+
72
+
nativeInstallCheckInputs = [ versionCheckHook ];
73
+
versionCheckProgram = writeShellScript "version-check" ''
74
+
marketing_version=$(${xcbuild}/bin/PlistBuddy -c "Print :CFBundleShortVersionString" "$1" | ${coreutils}/bin/tr -d '"')
75
+
build_version=$(${xcbuild}/bin/PlistBuddy -c "Print :CFBundleVersion" "$1")
76
+
77
+
echo $marketing_version.$build_version
78
+
'';
79
+
versionCheckProgramArg = [ "${placeholder "out"}/Applications/Enpass.app/Contents/Info.plist" ];
80
+
doInstallCheck = true;
81
82
meta = {
83
description = "Choose your own safest place to store passwords";