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}/
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.
ln -s "${src}" "$out/share/BinaryNinja-personal.zip"
'';
meta.platforms = [ "x86_64-linux" ];
}

View file

@ -1,17 +1,21 @@
pkgs:
let
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
rec
{
binaryninja = x64 (pkgs.callPackage ./binary-ninja-personal { });
commander-x16 = pkgs.callPackage ./commander-x16 { };
gef = pkgs.callPackage ./gef { };
packettracer = x64 (pkgs.callPackage ./packettracer { });
security-toolbox = x64 (pkgs.callPackage ./security-toolbox { inherit gef webshells weevely; });
SpaceCadetPinball = x64 (pkgs.callPackage ./SpaceCadetPinball { });
stretchy-spaces = pkgs.callPackage ./stretchy-spaces { };
webshells = pkgs.callPackage ./webshells { };
weevely = pkgs.callPackage ./weevely { };
binaryninja = pkg ./binary-ninja-personal { };
commander-x16 = pkg ./commander-x16 { };
gef = pkg ./gef { };
packettracer = pkg ./packettracer { };
security-toolbox = pkg ./security-toolbox { inherit gef webshells weevely; };
SpaceCadetPinball = pkg ./SpaceCadetPinball { };
stretchy-spaces = pkg ./stretchy-spaces { };
webshells = pkg ./webshells { };
weevely = pkg ./weevely { };
}

View file

@ -25,8 +25,6 @@
}:
assert stdenv.hostPlatform.system == "x86_64-linux";
let
version = "8.0.1";
@ -108,4 +106,6 @@ buildFHSUserEnvBubblewrap {
mkdir -p "$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 = { }; }))
(postman.overrideAttrs (_: { meta = { }; }))
];
meta.platforms = [ "x86_64-linux" ];
}