treewide: remove platform assertions
linux: readd assertion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user