clean up package definitions

This commit is contained in:
Sean Buckley 2021-11-01 22:21:01 -04:00
parent fb446a7250
commit 6d2fa7384d
5 changed files with 22 additions and 12 deletions

View file

@ -55,4 +55,6 @@ stdenv.mkDerivation rec {
cp ${spacecadet_files}/* $out/share/${pname}/ cp ${spacecadet_files}/* $out/share/${pname}/
ln -s $out/share/${pname}/SpaceCadetPinball $out/bin/SpaceCadetPinball ln -s $out/share/${pname}/SpaceCadetPinball $out/bin/SpaceCadetPinball
''; '';
meta.platforms = [ "x86_64-linux" ];
} }

View file

@ -93,4 +93,6 @@ stdenv.mkDerivation rec {
# Below is just a hack to keep the zip from being garbage-collected. # Below is just a hack to keep the zip from being garbage-collected.
ln -s "${src}" "$out/share/BinaryNinja-personal.zip" ln -s "${src}" "$out/share/BinaryNinja-personal.zip"
''; '';
meta.platforms = [ "x86_64-linux" ];
} }

View file

@ -1,17 +1,21 @@
pkgs: pkgs:
let let
empty = pkgs.runCommand "empty" { } "mkdir $out"; empty = pkgs.runCommand "empty" { } "mkdir $out";
x64 = x: if pkgs.system == "x86_64-linux" then x else empty; pkg = path: args:
let
p = pkgs.callPackage path args;
in
if p.meta.available then p else empty;
in in
rec rec
{ {
binaryninja = x64 (pkgs.callPackage ./binary-ninja-personal { }); binaryninja = pkg ./binary-ninja-personal { };
commander-x16 = pkgs.callPackage ./commander-x16 { }; commander-x16 = pkg ./commander-x16 { };
gef = pkgs.callPackage ./gef { }; gef = pkg ./gef { };
packettracer = x64 (pkgs.callPackage ./packettracer { }); packettracer = pkg ./packettracer { };
security-toolbox = x64 (pkgs.callPackage ./security-toolbox { inherit gef webshells weevely; }); security-toolbox = pkg ./security-toolbox { inherit gef webshells weevely; };
SpaceCadetPinball = x64 (pkgs.callPackage ./SpaceCadetPinball { }); SpaceCadetPinball = pkg ./SpaceCadetPinball { };
stretchy-spaces = pkgs.callPackage ./stretchy-spaces { }; stretchy-spaces = pkg ./stretchy-spaces { };
webshells = pkgs.callPackage ./webshells { }; webshells = pkg ./webshells { };
weevely = pkgs.callPackage ./weevely { }; weevely = pkg ./weevely { };
} }

View file

@ -25,8 +25,6 @@
}: }:
assert stdenv.hostPlatform.system == "x86_64-linux";
let let
version = "8.0.1"; version = "8.0.1";
@ -108,4 +106,6 @@ buildFHSUserEnvBubblewrap {
mkdir -p "$out/share/applications" mkdir -p "$out/share/applications"
cp "${desktopItem}"/share/applications/* "$out/share/applications/" cp "${desktopItem}"/share/applications/* "$out/share/applications/"
''; '';
meta.platforms = [ "x86_64-linux" ];
} }

View file

@ -77,4 +77,6 @@ symlinkJoin {
(burpsuite.overrideAttrs (_: { meta = { }; })) (burpsuite.overrideAttrs (_: { meta = { }; }))
(postman.overrideAttrs (_: { meta = { }; })) (postman.overrideAttrs (_: { meta = { }; }))
]; ];
meta.platforms = [ "x86_64-linux" ];
} }