mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
+ generate-shell-nix
This commit is contained in:
10
package/default.nix
Normal file
10
package/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ lib }:
|
||||
with lib;
|
||||
let
|
||||
callPackage = set: f: overrides: f ((builtins.intersectAttrs (builtins.functionArgs f) set) // overrides);
|
||||
subdirsOf = path: lib.mapAttrs (name: _: path + "/${name}") (filterAttrs (_: eq "directory") (readDir path));
|
||||
in mapAttrs
|
||||
(_: flip callPackage {})
|
||||
(filterAttrs
|
||||
(_: dir: pathExists (dir + "/default.nix"))
|
||||
(subdirsOf ./.))
|
||||
Reference in New Issue
Block a user