From 7d9e34d228c39778a45f726a49e293c50abdf2c2 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sat, 21 Oct 2023 18:37:11 -0400 Subject: [PATCH] Inherit post install --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index ebe9c5d..1120434 100644 --- a/flake.nix +++ b/flake.nix @@ -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