mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move packages from external file to flake
This commit is contained in:
parent
7a7a898389
commit
33b3556aa1
6 changed files with 15 additions and 22 deletions
16
flake.nix
16
flake.nix
|
@ -4,7 +4,21 @@
|
|||
outputs = { self, nixpkgs, ... }:
|
||||
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;
|
||||
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs
|
||||
|
|
|
@ -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 { };
|
||||
}
|
Loading…
Reference in a new issue