2024-08-02 22:32:29 -04:00
|
|
|
{
|
2024-08-04 13:52:41 -04:00
|
|
|
lib,
|
2024-08-02 22:32:29 -04:00
|
|
|
libratbag-src,
|
2024-08-04 13:52:41 -04:00
|
|
|
libratbag,
|
2024-08-02 22:32:29 -04:00
|
|
|
...
|
2024-08-04 13:52:41 -04:00
|
|
|
}: let
|
|
|
|
inherit (lib) elemAt match readFile splitString;
|
|
|
|
|
|
|
|
releaseVer = elemAt (match "^([^']*).*" (elemAt (splitString "version : '" (readFile "${libratbag-src}/meson.build")) 1)) 0;
|
|
|
|
in
|
|
|
|
libratbag.overrideAttrs {
|
|
|
|
pname = "libratbag";
|
|
|
|
version = "${releaseVer}+${libratbag-src.shortRev}";
|
|
|
|
src = libratbag-src;
|
|
|
|
}
|