mympd: use finalAttrs in mkDerivation

This commit is contained in:
Doron Behar 2023-09-20 16:21:15 +03:00
parent e0c80fc83c
commit dd730dbc7a

View file

@ -14,14 +14,14 @@
, jq
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "mympd";
version = "12.0.1";
src = fetchFromGitHub {
owner = "jcorporation";
repo = "myMPD";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "sha256-tkkaBIWoQS28FsCSN5CKw2ZQ3cbYa34PVZCUGaaqaQo=";
};
@ -64,4 +64,4 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.linux;
license = lib.licenses.gpl2Plus;
};
}
})