git.iko.soy/typeable/nixpkgs
on master help sign in
pond: Simplify platform logic
commit2d1d83d836e09e50469302101955ea6c58dcd206 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateMon 12 Mar 2018, 18:30 (9 years ago) parentb152dcf
1 file changed+2−3
pkgs/applications/networking/instant-messengers/pond/default.nix+2−3
pkgs/applications/networking/instant-messengers/pond/default.nix+2−3
@@ -2,7 +2,6 @@
22 fetchgit, fetchhg, fetchbzr, fetchsvn }:
33
44let
5− isx86_64 = stdenv.lib.any (n: n == stdenv.system) stdenv.lib.platforms.x86_64;
65 gui = true; # Might be implemented with nixpkgs config.
76in
87buildGoPackage rec {
@@ -22,11 +21,11 @@ buildGoPackage rec {
2221
2322 nativeBuildInputs = [ pkgconfig ];
2423 buildInputs = [ trousers gtk3 gtkspell3 ]
25− ++ stdenv.lib.optional isx86_64 dclxvi
24+ ++ stdenv.lib.optional stdenv.hostPlatform.isx86_64 dclxvi
2625 ++ stdenv.lib.optionals gui [ wrapGAppsHook ];
2726 buildFlags = stdenv.lib.optionalString (!gui) "-tags nogui";
2827 excludedPackages = "\\(appengine\\|bn256cgo\\)";
29− postPatch = stdenv.lib.optionalString isx86_64 ''
28+ postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isx86_64 ''
3029 grep -r 'bn256' | awk -F: '{print $1}' | xargs sed -i \
3130 -e "s,golang.org/x/crypto/bn256,github.com/agl/pond/bn256cgo,g" \
3231 -e "s,bn256\.,bn256cgo.,g"