summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/security/enpass/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/security/enpass/default.nix')
-rw-r--r--pkgs/tools/security/enpass/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/tools/security/enpass/default.nix b/pkgs/tools/security/enpass/default.nix
index 38104b8b213d..f27f9af59c68 100644
--- a/pkgs/tools/security/enpass/default.nix
+++ b/pkgs/tools/security/enpass/default.nix
@@ -3,15 +3,15 @@
, gtk2, pango, atk, cairo, gdk_pixbuf, jasper, xkeyboardconfig
, makeWrapper , makeDesktopItem, python, pythonPackages, lib
, libredirect, lsof}:
-assert system == "i686-linux" || system == "x86_64-linux";
+
let
- all_data = (with builtins; fromJSON (readFile ./data.json));
+ all_data = builtins.fromJSON (builtins.readFile ./data.json);
system_map = {
i686-linux = "i386";
x86_64-linux = "amd64";
};
- data = (with builtins; getAttr (getAttr system system_map) all_data);
+ data = all_data.${system_map.${system} or (throw "Unsupported platform")};
baseUrl = http://repo.sinew.in;
@@ -54,7 +54,7 @@ let
description = "a well known password manager";
homepage = https://www.enpass.io/;
license = lib.licenses.unfree;
- platforms = lib.platforms.linux;
+ platforms = [ "x86_64-linux" "i686-linux"];
};
buildInputs = [makeWrapper dpkg];
@@ -70,8 +70,8 @@ let
cp $out/bin/EnpassHelper/EnpassNMHost{,.untampered}
sed \
- -i s@/opt/Enpass/bin/runenpass.sh@$out/bin/Enpass@ \
- $out/share/applications/enpass.desktop
+ -i s@/opt/Enpass/bin/runenpass.sh@$out/bin/Enpass@ \
+ $out/share/applications/enpass.desktop
for i in $out/bin/{Enpass,EnpassHelper/{EnpassHelper,EnpassNMHost}}; do
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $i