printerfacts/printerfacts.nix

14 lines
373 B
Nix
Raw Normal View History

2020-05-15 13:16:16 +00:00
{ sources ? import ./nix/sources.nix, pkgs ? import <nixpkgs> { } }:
2020-05-13 20:38:16 +00:00
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