move packages to separate file

This commit is contained in:
Sean Buckley 2021-10-08 23:20:14 -04:00
parent 7eb23fbb59
commit b7bc5157f5
2 changed files with 26 additions and 19 deletions

View file

@ -4,25 +4,7 @@
outputs = { self, nixpkgs, impermanence, ... }: outputs = { self, nixpkgs, impermanence, ... }:
let let
mypkgs = pkgs: mypkgs = import ./pkgs self;
{
commander-x16 = pkgs.callPackage ./pkgs/commander-x16 { };
gef = pkgs.callPackage ./pkgs/gef { };
stretchy-spaces = pkgs.callPackage ./pkgs/stretchy-spaces { };
webshells = pkgs.callPackage ./pkgs/webshells { };
weevely = pkgs.callPackage ./pkgs/weevely { };
}
//
{
security-toolbox = pkgs.callPackage ./pkgs/security-toolbox {
pkgs = pkgs // self.packages.${pkgs.system};
};
}
// (if pkgs.system != "x86_64-linux" then { } else
{
binaryninja = pkgs.callPackage ./pkgs/binary-ninja-personal { };
packettracer = pkgs.callPackage ./pkgs/packettracer { };
});
in in
{ {
nixosModules = nixosModules =

25
pkgs/default.nix Normal file
View file

@ -0,0 +1,25 @@
self:
pkgs:
let
allArchs =
{
commander-x16 = pkgs.callPackage ./commander-x16 { };
gef = pkgs.callPackage ./gef { };
stretchy-spaces = pkgs.callPackage ./stretchy-spaces { };
webshells = pkgs.callPackage ./webshells { };
weevely = pkgs.callPackage ./weevely { };
security-toolbox = pkgs.callPackage ./security-toolbox {
pkgs = pkgs // self.packages.${pkgs.system};
};
};
x64Lin =
{
binaryninja = pkgs.callPackage ./binary-ninja-personal { };
packettracer = pkgs.callPackage ./packettracer { };
};
in
allArchs // (if pkgs.system != "x86_64-linux" then { } else x64Lin)