forked from Yuka/c3h-nixfiles
initial commit
This commit is contained in:
commit
70b89988a9
15 changed files with 485 additions and 0 deletions
14
nix/sources-dir.nix
Normal file
14
nix/sources-dir.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ system ? builtins.currentSystem }:
|
||||
|
||||
let
|
||||
sources = import ./sources.nix {};
|
||||
pkgs = import sources.nixpkgs { inherit system; };
|
||||
lib = pkgs.lib;
|
||||
in
|
||||
pkgs.runCommand "sources" {} (
|
||||
lib.concatStringsSep "\n" ([
|
||||
"mkdir $out"
|
||||
]
|
||||
++ lib.mapAttrsToList (name: source: "ln -s ${source.outPath} $out/${name}") sources
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue