berry: patch the version in the configure script
This fixes how berry internalizes its own version. By default a static 0.1.7 is and overriden if a `.git` folder does exist. In that case `git describe` is used and the version parsed out of it. This PR unconditionally patches the version in the configure file as that appears to be easier and more idiomatic than a "fake git".
This commit is contained in:
parent
6a84022c43
commit
b283467401
@ -39,6 +39,10 @@ stdenv.mkDerivation rec {
|
||||
freetype
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i --regexp-extended 's/(pkg_verstr=").*(")/\1${version}\2/' configure
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs configure
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user