Add nix function for getting unpacked sources
commita1007110fa88a16ab54c753331841eeb1b46ffa6
authorElliot Cameron <eacameron@gmail.com>
dateTue 12 May 2020, 13:47 (6 years ago)
parent01874e2
default.nix+7
@@ -191,6 +191,13 @@ in rec {
191191 };
192192 };
193193
194+ getLocalSourceSet = pkg: lib.filter
195+ (p: (builtins.isPath or (x: !(builtins.isString x))) (p.src or null))
196+ (lib.closePropagation (
197+ pkg.getBuildInputs.haskellBuildInputs or
198+ (pkg.buildInputs ++ pkg.propagatedBuildInputs ++ pkg.nativeBuildInputs)
199+ ));
200+
194201 # An Obelisk project is a reflex-platform project with a predefined layout and role for each component
195202 project = base': projectDefinition:
196203 let