try to add autoPatchelfHook

This commit is contained in:
Andreas Zweili 2021-12-28 14:48:57 +01:00
parent 33cc7cd058
commit b0dd5c241e
1 changed files with 29 additions and 23 deletions

View File

@ -25,10 +25,14 @@
devShell."${system}" = pkgs.mkShell { devShell."${system}" = pkgs.mkShell {
buildInputs = [ pyEnv ]; buildInputs = [ pyEnv ];
}; };
packages = { packages =
binary = pkgs.stdenv.mkDerivation rec { let
binary = { autoPatchelfHook, ... }: pkgs.stdenv.mkDerivation rec {
name = "todoist_interface"; name = "todoist_interface";
src = self; src = self;
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [ buildInputs = [
pkgs.coreutils pkgs.coreutils
pkgs.glibc pkgs.glibc
@ -46,7 +50,9 @@
cp /build/source/dist/todoist_interface "$out/todoist_interface" cp /build/source/dist/todoist_interface "$out/todoist_interface"
''; '';
}; };
}; in
defaultPackage = packages.binary; pkgs.callPackage binary { };
defaultPackage = packages;
}); });
} }