Skip to content

Commit 81a952d

Browse files
committed
Nixpkgs overlay: Don't use 'pkgs'
This can cause the package to depend on two different versions of Nixpkgs, leading to Python module clashes.
1 parent 0a636f2 commit 81a952d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flake.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
officialRelease = false;
2222

23-
version = "1.8" + (if officialRelease then "" else "pre${builtins.substring 0 8 self.lastModifiedDate}.${self.shortRev}");
23+
version = "1.8" + (if officialRelease then "" else "pre${builtins.substring 0 8 self.lastModifiedDate}.${self.shortRev or "dirty"}");
2424

2525
pkgs = import nixpkgs {
2626
system = "x86_64-linux";
@@ -38,7 +38,7 @@
3838

3939
buildInputs = [ python2Packages.nose python2Packages.coverage ];
4040

41-
nativeBuildInputs = [ pkgs.mypy ];
41+
nativeBuildInputs = [ mypy ];
4242

4343
propagatedBuildInputs = with python2Packages;
4444
[ prettytable
@@ -73,7 +73,7 @@
7373
'';
7474

7575
# Needed by libcloud during tests.
76-
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
76+
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
7777

7878
# Add openssh to nixops' PATH. On some platforms, e.g. CentOS and RHEL
7979
# the version of openssh is causing errors with big networks (40+).
@@ -119,7 +119,7 @@
119119
distPhase =
120120
''
121121
# Generate the manual and the man page.
122-
cp ${(import ./doc/manual { revision = self.rev; inherit nixpkgs; }).optionsDocBook} doc/manual/machine-options.xml
122+
cp ${(import ./doc/manual { revision = self.rev or "dirty"; inherit nixpkgs; }).optionsDocBook} doc/manual/machine-options.xml
123123
124124
for i in scripts/nixops setup.py doc/manual/manual.xml; do
125125
substituteInPlace $i --subst-var-by version ${version}

0 commit comments

Comments
 (0)