Inherit post install

This commit is contained in:
Nathan McCarty 2023-10-21 18:37:11 -04:00
parent bbee286c6b
commit 7d9e34d228
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,8 @@
{ {
# Build a rust flake with a single crate # Build a rust flake with a single crate
single = { src, crateName, sharedDeps ? (system: [ ]) single = { src, crateName, sharedDeps ? (system: [ ])
, sharedNativeDeps ? (system: [ ]), copyBins ? true, copyLibs ? false }: , sharedNativeDeps ? (system: [ ]), copyBins ? true, copyLibs ? false
, postInstall ? false, }:
utils.lib.eachDefaultSystem (system: utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -106,7 +107,8 @@
# Main binary # Main binary
packages.${crateName} = naersk-lib.buildPackage { packages.${crateName} = naersk-lib.buildPackage {
pname = "${crateName}"; pname = "${crateName}";
inherit buildInputs nativeBuildInputs copyBins copyLibs; inherit buildInputs nativeBuildInputs copyBins copyLibs
postInstall;
root = src; root = src;
}; };
# binary + tests # binary + tests