python3Packages.dotnetcore2: 2.1.11 -> 2.1.13
instead of installing only what's needed, remove extraneous executable
This commit is contained in:
parent
c1a6e60335
commit
5d4162e9f9
1 changed files with 5 additions and 9 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dotnetcore2";
|
pname = "dotnetcore2";
|
||||||
version = "2.1.11";
|
version = "2.1.13";
|
||||||
format = "wheel";
|
format = "wheel";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
inherit pname version format;
|
inherit pname version format;
|
||||||
python = "py3";
|
python = "py3";
|
||||||
platform = "manylinux1_x86_64";
|
platform = "manylinux1_x86_64";
|
||||||
sha256 = "0qhp94bjz4icz2f0fnhgck875chiqzy4lvsp6lwhj5jd0zsv2bb3";
|
sha256 = "1fbg3pn7g0a6pg0gb5vaapcc3cdp6wfnliim57fn3cnzmx5d8p6i";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
@ -35,13 +35,9 @@ buildPythonPackage rec {
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
# unfortunately the noraml pip install fails because the manylinux1 format check fails with NixOS
|
# prevent exposing a broken dotnet executable
|
||||||
installPhase = ''
|
postInstall = ''
|
||||||
mkdir -p $out/${python.sitePackages}/${pname}
|
rm -r $out/${python.sitePackages}/${pname}/bin
|
||||||
# copy metadata
|
|
||||||
cp -r dotnetcore2-2* $out/${python.sitePackages}
|
|
||||||
# copy non-dotnetcore related files
|
|
||||||
cp -r dotnetcore2/{__init__.py,runtime.py} $out/${python.sitePackages}/${pname}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# no tests, ensure it's one useful function works
|
# no tests, ensure it's one useful function works
|
||||||
|
|
Loading…
Reference in a new issue