ghdl: use finalAttrs idiom instead of rec

This commit is contained in:
éclairevoyant 2023-09-23 04:41:15 -04:00 committed by Bjørn Forsman
parent 183b2f9f02
commit cfb71772af

View file

@ -11,14 +11,14 @@
assert backend == "mcode" || backend == "llvm";
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ghdl-${backend}";
version = "3.0.0";
src = fetchFromGitHub {
owner = "ghdl";
repo = "ghdl";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-94RNtHbOpbC2q/Z+PsQplrLxXmpS3LXOCXyTBB+n9c4=";
};
@ -69,4 +69,4 @@ stdenv.mkDerivation rec {
maintainers = with lib.maintainers; [ eclairevoyant lucus16 thoughtpolice ];
platforms = lib.platforms.linux;
};
}
})