aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/bin/paku.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/paku.in b/src/bin/paku.in
index ca43aa6..8dc30c9 100755
--- a/src/bin/paku.in
+++ b/src/bin/paku.in
@@ -212,6 +212,20 @@ sub emit_release() {
exit;
}
+sub emit_build_nix() {
+ my $json = load_json();
+ my $ns = $json->{namespace};
+ $ns =~ s/\./-/g;
+ print <<~EOF;
+ { pkgs ?
+ import <nixpkgs> { overlays = [ (import ./default.nix { inherit pkgs; }) ]; }
+ }:
+
+ map (name: pkgs.$ns."\${name}")
+ (builtins.attrNames pkgs.$ns)
+ EOF
+}
+
sub emit_nix() {
my $json = load_json();
my $ns = $json->{namespace};
@@ -944,6 +958,7 @@ sub emit_html() {
my %actions = (
'debian-packages' => \&emit_packages,
'debian-release' => \&emit_release,
+ 'build-nix' => \&emit_build_nix,
nix => \&emit_nix,
guix => \&emit_guix,
'guix-channel-key' => \&emit_guix_channel_key,