blob: 67b8a00ee0ee23a8849f928a6de1558f51f09afe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
stdenv,
python,
flit-core,
}:
stdenv.mkDerivation {
pname = "${python.libPrefix}-bootstrap-${flit-core.pname}";
inherit (flit-core)
version
src
patches
meta
;
postPatch = "cd 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
'';
}
|