From b575e2a34d26977883192292b055fd1a8ae8355b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Dec 2011 23:15:57 +0100 Subject: Use Hydra's shortRev attribute --- release.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.nix b/release.nix index 428b72a..1b37ca0 100644 --- a/release.nix +++ b/release.nix @@ -1,4 +1,4 @@ -{ patchelfSrc ? { outPath = ./.; revCount = 1234; gitTag = "abcdef"; } +{ patchelfSrc ? { outPath = ./.; revCount = 1234; shortRev = "abcdef"; } , officialRelease ? false }: @@ -14,7 +14,7 @@ let pkgs.releaseTools.sourceTarball { name = "patchelf-tarball"; version = builtins.readFile ./version; - versionSuffix = if officialRelease then "" else "pre${toString patchelfSrc.revCount}-${patchelfSrc.gitTag}"; + versionSuffix = if officialRelease then "" else "pre${toString patchelfSrc.revCount}-${patchelfSrc.shortRev}"; src = patchelfSrc; inherit officialRelease; postDist = '' -- cgit v0.12