Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 22 lines 523 B view raw
1{ 2 lib, 3 generateSplicesForMkScope, 4 newScope, 5 splicePackages, 6 callPackage, 7}: 8 9let 10 otherSplices = generateSplicesForMkScope [ "nixDependencies" ]; 11in 12lib.makeScopeWithSplicing' 13 { 14 inherit splicePackages; 15 inherit newScope; # layered directly on pkgs, unlike nixComponents above 16 } 17 { 18 # Technically this should point to the nixDependencies set only, but 19 # this is ok as long as the scopes don't intersect. 20 inherit otherSplices; 21 f = (callPackage ./dependencies.nix { }).scopeFunction; 22 }