quickserv/default.nix

14 lines
411 B
Nix
Raw Normal View History

2020-05-28 18:47:28 +00:00
{ pkgs ? import <nixpkgs> { }, sources ? import ./nix/sources.nix
, naersk ? import sources.naersk { } }:
2020-02-08 22:06:53 +00:00
with pkgs;
2020-05-28 18:47:28 +00:00
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; }