mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 20:44:12 +00:00
nixopsUnstable: fix build
This commit is contained in:
parent
8710df5d26
commit
f439af5ce6
@ -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"
|
||||
}
|
||||
'';
|
||||
|
||||
};
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user