initial commit

This commit is contained in:
Yuka 2021-08-21 18:47:21 +02:00
commit 70b89988a9
Signed by untrusted user: Yuka
GPG key ID: B95AE06334AFF6BA
15 changed files with 485 additions and 0 deletions

14
nix/sources-dir.nix Normal file
View 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
)
)