summaryrefslogtreecommitdiffstats
path: root/krebs/krops.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-03-19 13:16:27 +0100
committermakefu <github@syntax-fehler.de>2020-03-19 13:16:27 +0100
commit2761a90fbb4747a473c792060e258088a1749263 (patch)
tree457af539332b3ab299b55f52fe1fbf5195044178 /krebs/krops.nix
parentcbd9b1923236566893f12a9ce96bec7c9f59fcda (diff)
parent2ec1535de5c3e751d2c98952d0f2eeb80d1d2e1e (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/krops.nix')
-rw-r--r--krebs/krops.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/krebs/krops.nix b/krebs/krops.nix
index 1f439f622..608e46df1 100644
--- a/krebs/krops.nix
+++ b/krebs/krops.nix
@@ -31,18 +31,19 @@
};
};
stockholm.file = toString ../.;
- stockholm-version.pipe = toString (pkgs.writeDash "${name}-version" ''
- set -efu
- cd ${lib.escapeShellArg stockholm.file}
- V=$(${pkgs.coreutils}/bin/date +%y.%m)
- if test -d .git; then
- V=$V.git.$(${pkgs.git}/bin/git describe --always --dirty)
- case $V in (*-dirty)
- V=$V@''${HOSTNAME-$(${pkgs.nettools}/bin/hostname)}
- esac
- fi
- printf %s "$V"
- '');
+ stockholm-version.pipe =
+ toString (pkgs.writers.writeDash "${name}-version" ''
+ set -efu
+ cd ${lib.escapeShellArg stockholm.file}
+ V=$(${pkgs.coreutils}/bin/date +%y.%m)
+ if test -d .git; then
+ V=$V.git.$(${pkgs.git}/bin/git describe --always --dirty)
+ case $V in (*-dirty)
+ V=$V@''${HOSTNAME-$(${pkgs.nettools}/bin/hostname)}
+ esac
+ fi
+ printf %s "$V"
+ '');
};
source ={ test }: lib.evalSource [