diff options
author | makefu <github@syntax-fehler.de> | 2017-09-29 21:28:23 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-09-29 21:28:23 +0200 |
commit | c352397385d5e7cbf2095ead0aa4a74be116da34 (patch) | |
tree | 72a730cb2b451b5700a8eaf9420b4bd46f513ba9 /tv/3modules/nixpkgs-overlays.nix | |
parent | 9d9e9bc3d8087974370e3d62bc05d2332b2efab2 (diff) | |
parent | 37951eed3dd7806f73c40c47ec9cd047ad76c15d (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'tv/3modules/nixpkgs-overlays.nix')
-rw-r--r-- | tv/3modules/nixpkgs-overlays.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tv/3modules/nixpkgs-overlays.nix b/tv/3modules/nixpkgs-overlays.nix new file mode 100644 index 000000000..4eb7a86bd --- /dev/null +++ b/tv/3modules/nixpkgs-overlays.nix @@ -0,0 +1,23 @@ +with import <stockholm/lib>; +{ config, pkgs, ... }: { + + options.tv.nixpkgs-overlays = mkOption { + apply = src: + pkgs.runCommand "nixpkgs-overlays" {} '' + mkdir $out + ${concatStringsSep "\n" (mapAttrsToList (name: path: + "ln -s ${shell.escape path} $out/${shell.escape name}" + ) src)} + '' // { + inherit src; + }; + type = types.attrsOf types.absolute-pathname; + }; + + config = { + tv.nixpkgs-overlays = { + krebs = mkDefault "/var/src/stockholm/krebs/5pkgs"; + tv = mkDefault "/var/src/stockholm/tv/5pkgs"; + }; + }; +} |