mempool: fix version

Remove `v` prefix of mempool drv versions: `v2.5.0` -> `2.5.0`
This commit is contained in:
Erik Arvstedt 2025-06-02 10:32:32 +02:00
parent a06d1d8118
commit c48b99782d
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 6 additions and 5 deletions

View file

@ -14,10 +14,12 @@ rec {
nodejs = nodejs-18_x; nodejs = nodejs-18_x;
nodejsRuntime = nodejs-slim-18_x; nodejsRuntime = nodejs-slim-18_x;
version = "2.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mempool"; owner = "mempool";
repo = "mempool"; repo = "mempool";
rev = "v2.5.0"; tag = "v${version}";
hash = "sha256-8HmfytxRte3fQ0QKOljUVk9YAuaXhQQWuv3EFNmOgfQ="; hash = "sha256-8HmfytxRte3fQ0QKOljUVk9YAuaXhQQWuv3EFNmOgfQ=";
}; };
@ -108,8 +110,7 @@ rec {
sync = "${rsync}/bin/rsync -a --inplace"; sync = "${rsync}/bin/rsync -a --inplace";
mkDerivationMempool = args: stdenvNoCC.mkDerivation ({ mkDerivationMempool = args: stdenvNoCC.mkDerivation ({
version = src.rev; inherit version src meta;
inherit src meta;
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper

View file

@ -40,9 +40,9 @@ updateSrc() {
hash=$(nix hash path "$src") hash=$(nix hash path "$src")
sed -i " sed -i "
s|\bversion = .*;|version = \"$version\";|
s|\bowner = .*;|owner = \"$owner\";| s|\bowner = .*;|owner = \"$owner\";|
s|\brev = .*;|rev = \"$rev\";| /fetchFromGitHub/,/hash/ s|\bhash = .*;|hash = \"$hash\";|
s|\bhash = .*;|hash = \"$hash\";|
" default.nix " default.nix
} }