bmxd: set version manually to prevent IFD

This commit is contained in:
Ehmry - 2022-01-13 17:33:34 +01:00
parent 4725aed044
commit ddc5a3f9a5
1 changed files with 3 additions and 9 deletions

View File

@ -7,14 +7,6 @@ let
sha256 = "sha256-3sV59uqFp+TZKrDf7kmksLvz+5ZKriwFyXZMBH2Sdws=";
};
path = "feeds/19.07/feeds-own/bmxd";
makefile = builtins.readFile "${src}/${path}/Makefile";
makeDef = name:
builtins.elemAt (builtins.match ''
.*?${name}:=([^
]+).*?'' makefile) 0;
name = makeDef "PKG_NAME";
version = makeDef "PKG_VERSION";
release = makeDef "PKG_RELEASE";
patch = fetchpatch {
name = "timercpy.patch";
url =
@ -22,7 +14,9 @@ let
sha256 = "sha256-40BbcCZ10cQzvkfsAi8ApCgmC4hGMh2J8xU6gjD3cng=";
};
in stdenv.mkDerivation {
name = "${name}-${version}-${release}";
pname = "bmxd";
version = "0.4-1"; # ${version}-${release}
inherit src;
patches = [ patch ];
buildPhase = "cd ${path}/sources";