From 3957be3c6c3bed547af0bbd028718f423105c0d2 Mon Sep 17 00:00:00 2001 From: b4mbus Date: Fri, 24 May 2024 01:51:02 +0200 Subject: [PATCH] ref: only copy dev files in postInstall --- nix/package/package.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/nix/package/package.nix b/nix/package/package.nix index 598debc..26dcbbf 100644 --- a/nix/package/package.nix +++ b/nix/package/package.nix @@ -50,15 +50,8 @@ stdenv.mkDerivation { "-Dstrip=true" ]; - buildPhase = '' - meson compile dire - ''; - - installPhase = '' - mkdir -p {$dev,$out}/lib $dev/lib/pkgconfig $dev/include - - cp src/lib/libdire.a $out/lib - cp src/lib/libdire.a $dev/lib + postInstall = '' + mkdir -p $dev/lib/pkgconfig $dev/include cp -r $src/src/lib/include/* $dev/include