You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
400 B

{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
let
rust = import ./nix/rust.nix { inherit sources; };
naersk = pkgs.callPackage sources.naersk {
rustc = rust;
cargo = rust;
};
src = builtins.filterSource (path: type: type != "directory" ||
builtins.baseNameOf path != "target") ./.;
in naersk.buildPackage {
inherit src;
remapPathPrefix = true;
}