mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-06 23:53:33 +00:00
30 lines
538 B
Nix
30 lines
538 B
Nix
{ lib
|
|
, stdenv
|
|
, python
|
|
, flit-core
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "${python.libPrefix}-bootstrap-${flit-core.pname}";
|
|
inherit (flit-core) version src patches meta;
|
|
|
|
sourceRoot = "source/flit_core";
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
${python.interpreter} -m flit_core.wheel
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
${python.interpreter} bootstrap_install.py dist/flit_core-*.whl \
|
|
--install-root "$out" --installdir "/${python.sitePackages}"
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|