14 lines
379 B
Nix
14 lines
379 B
Nix
|
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
|
||
|
let
|
||
|
srcNoTarget = dir:
|
||
|
builtins.filterSource
|
||
|
(path: type: type != "directory" || builtins.baseNameOf path != "target")
|
||
|
dir;
|
||
|
naersk = pkgs.callPackage sources.naersk { };
|
||
|
src = srcNoTarget ./.;
|
||
|
pfacts = naersk.buildPackage {
|
||
|
inherit src;
|
||
|
remapPathPrefix = true;
|
||
|
};
|
||
|
in pfacts
|