try to add autoPatchelfHook
This commit is contained in:
parent
33cc7cd058
commit
b0dd5c241e
52
flake.nix
52
flake.nix
|
@ -25,28 +25,34 @@
|
||||||
devShell."${system}" = pkgs.mkShell {
|
devShell."${system}" = pkgs.mkShell {
|
||||||
buildInputs = [ pyEnv ];
|
buildInputs = [ pyEnv ];
|
||||||
};
|
};
|
||||||
packages = {
|
packages =
|
||||||
binary = pkgs.stdenv.mkDerivation rec {
|
let
|
||||||
name = "todoist_interface";
|
binary = { autoPatchelfHook, ... }: pkgs.stdenv.mkDerivation rec {
|
||||||
src = self;
|
name = "todoist_interface";
|
||||||
buildInputs = [
|
src = self;
|
||||||
pkgs.coreutils
|
nativeBuildInputs = [
|
||||||
pkgs.glibc
|
autoPatchelfHook
|
||||||
pkgs.bintools-unwrapped
|
];
|
||||||
pyEnv
|
buildInputs = [
|
||||||
];
|
pkgs.coreutils
|
||||||
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
pkgs.glibc
|
||||||
buildPhase = ''
|
pkgs.bintools-unwrapped
|
||||||
export PATH="${pkgs.lib.makeBinPath buildInputs}";
|
pyEnv
|
||||||
python -m pytest tests
|
];
|
||||||
pyinstaller -F todoist_interface/__main__.py -n todoist_interface
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
||||||
'';
|
buildPhase = ''
|
||||||
installPhase = ''
|
export PATH="${pkgs.lib.makeBinPath buildInputs}";
|
||||||
mkdir -p $out
|
python -m pytest tests
|
||||||
cp /build/source/dist/todoist_interface "$out/todoist_interface"
|
pyinstaller -F todoist_interface/__main__.py -n todoist_interface
|
||||||
'';
|
'';
|
||||||
};
|
installPhase = ''
|
||||||
};
|
mkdir -p $out
|
||||||
defaultPackage = packages.binary;
|
cp /build/source/dist/todoist_interface "$out/todoist_interface"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
pkgs.callPackage binary { };
|
||||||
|
|
||||||
|
defaultPackage = packages;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue