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