-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
26 lines (25 loc) · 870 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
# nix flake show
# nix hash to-sri sha256:HASH
# nix build .#PKG
# nix log .#PKG
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
cmd = nixpkgs.legacyPackages.${system};
build = pkg: cmd.callPackage ./${pkg} {};
build-static = pkg: cmd.pkgsStatic.callPackage ./${pkg} {};
in {
packages.x86_64-linux.apacheds = build "apacheds";
packages.x86_64-linux.dig-only = build "dig-only";
packages.x86_64-linux.nvi-patched = build "nvi-patched";
packages.x86_64-linux.openbsd-ed = build-static "openbsd-ed";
packages.x86_64-linux.s-nail = build "s-nail";
packages.x86_64-linux.wg = build-static "wg";
packages.x86_64-linux.wifycon = build "wifycon";
packages.x86_64-linux.yss = build "yss";
};
}