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