nixpkgs/pkgs/by-name/du/duckstation/002-hardcode-vars.diff
Anderson Torres d9a096606c duckstation: migrate to by-name
Since by-name hierarchy does not support "third party" callPackage calls, the
expression was modified to get rid of qt6Packages.
2024-05-28 10:40:27 -03:00

20 lines
497 B
Diff

diff --git a/src/scmversion/gen_scmversion.sh b/src/scmversion/gen_scmversion.sh
index 9122cd8..50ed8f9 100755
--- a/src/scmversion/gen_scmversion.sh
+++ b/src/scmversion/gen_scmversion.sh
@@ -10,10 +10,10 @@ else
fi
-HASH=$(git rev-parse HEAD)
-BRANCH=$(git rev-parse --abbrev-ref HEAD | tr -d '\r\n')
-TAG=$(git describe --dirty | tr -d '\r\n')
-DATE=$(git log -1 --date=iso8601-strict --format=%cd)
+HASH="@gitHash@"
+BRANCH="@gitBranch@"
+TAG="@gitTag@"
+DATE="@gitDate@"
cd $CURDIR