move packages from external file to flake

This commit is contained in:
Sean Buckley 2022-08-14 23:01:44 -04:00
parent 7a7a898389
commit 33b3556aa1
6 changed files with 15 additions and 22 deletions

View file

@ -4,7 +4,21 @@
outputs = { self, nixpkgs, ... }: outputs = { self, nixpkgs, ... }:
let let
mypkgs = import ./pkgs; mypkgs = pkgs:
let
pkg = path:
let
p = pkgs.callPackage path { };
in
if p.meta.available then p else pkgs.emptyDirectory;
in
(nixpkgs.lib.mapAttrs'
(name: type: {
name = nixpkgs.lib.removeSuffix ".nix" name;
value = pkg (./pkgs + "/${name}");
})
(builtins.readDir ./pkgs));
deploy = import lib/deploy.nix; deploy = import lib/deploy.nix;
forAllSystems = f: nixpkgs.lib.genAttrs forAllSystems = f: nixpkgs.lib.genAttrs

View file

@ -1,21 +0,0 @@
pkgs:
let
pkg = path: args:
let
p = pkgs.callPackage path args;
in
if p.meta.available then p else pkgs.emptyDirectory;
in
{
bck-nerdfont = pkg ./bck-nerdfont.nix { };
binaryninja = pkg ./binary-ninja-personal { };
commander-x16 = pkg ./commander-x16 { };
mp4grep = pkg ./mp4grep.nix { };
msfpc = pkg ./msfpc { };
security-wordlists = pkg ./wordlists.nix { };
SpaceCadetPinball = pkg ./SpaceCadetPinball { };
stretchy-spaces = pkg ./stretchy-spaces { };
vscode-vlang = pkg ./vscode-vlang { };
webshells = pkg ./webshells { };
weevely = pkg ./weevely { };
}