nixopsUnstable: fix build

This commit is contained in:
adisbladis 2022-10-07 18:58:27 +13:00
parent 8710df5d26
commit f439af5ce6
2 changed files with 25 additions and 3 deletions

View File

@ -42,18 +42,33 @@ let
overrides
# Make nixops pluginable
(self: super: {
(self: super: let
# Create a fake sphinx directory that doesn't pull the entire setup hook and incorrect python machinery
sphinx = pkgs.runCommand "sphinx" {} ''
mkdir -p $out/bin
for f in ${pkgs.python3.pkgs.sphinx}/bin/*; do
ln -s $f $out/bin/$(basename $f)
done
'';
in {
nixops = super.__toPluginAble {
drv = super.nixops;
finalDrv = self.nixops;
nativeBuildInputs = [ self.sphinx ];
nativeBuildInputs = [ sphinx ];
postInstall = ''
doc_cache=$(mktemp -d)
sphinx-build -b man -d $doc_cache doc/ $out/share/man/man1
html=$(mktemp -d)
sphinx-build -b html -d $doc_cache doc/ $out/share/nixops/doc
# Override buggy nixpkgs function
pythonOutputDistPhase() {
echo "no-op output dist phase"
}
'';
};

View File

@ -2052,6 +2052,9 @@
"boschshcpy": [
"setuptools"
],
"boto": [
"setuptools"
],
"boto3": [
"setuptools"
],
@ -7648,6 +7651,9 @@
"libvirt": [
"setuptools"
],
"libvirt-python": [
"setuptools"
],
"license-expression": [
"setuptools",
"setuptools-scm"
@ -16721,7 +16727,8 @@
"setuptools"
],
"typing-extensions": [
"flit-core"
"flit-core",
"setuptools"
],
"typing-inspect": [
"setuptools"