From 5b4c63172c625e9bae11ce6fbb7aeea161c097bb Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 3 Mar 2022 14:04:36 +0100 Subject: [PATCH] nixops_unstable: Fall back to "dirty" when rev missing Doesn't occur with generated code, but makes it easy to temporarily set the source to a path in the `poetry-git-overlay.nix` file. --- pkgs/applications/networking/cluster/nixops/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/cluster/nixops/default.nix b/pkgs/applications/networking/cluster/nixops/default.nix index 79b0a8cbda48..1f08aad53e4e 100644 --- a/pkgs/applications/networking/cluster/nixops/default.nix +++ b/pkgs/applications/networking/cluster/nixops/default.nix @@ -18,7 +18,7 @@ let nixops = super.nixops.overridePythonAttrs ( old: { - version = "${old.version}-pre-${lib.substring 0 7 super.nixops.src.rev}"; + version = "${old.version}-pre-${lib.substring 0 7 super.nixops.src.rev or "dirty"}"; postPatch = '' substituteInPlace nixops/args.py --subst-var version