Inherit post install
This commit is contained in:
parent
bbee286c6b
commit
7d9e34d228
|
@ -60,7 +60,8 @@
|
|||
{
|
||||
# Build a rust flake with a single crate
|
||||
single = { src, crateName, sharedDeps ? (system: [ ])
|
||||
, sharedNativeDeps ? (system: [ ]), copyBins ? true, copyLibs ? false }:
|
||||
, sharedNativeDeps ? (system: [ ]), copyBins ? true, copyLibs ? false
|
||||
, postInstall ? false, }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
|
@ -106,7 +107,8 @@
|
|||
# Main binary
|
||||
packages.${crateName} = naersk-lib.buildPackage {
|
||||
pname = "${crateName}";
|
||||
inherit buildInputs nativeBuildInputs copyBins copyLibs;
|
||||
inherit buildInputs nativeBuildInputs copyBins copyLibs
|
||||
postInstall;
|
||||
root = src;
|
||||
};
|
||||
# binary + tests
|
||||
|
|
Loading…
Reference in New Issue