ghdl: use finalAttrs idiom instead of rec
This commit is contained in:
parent
183b2f9f02
commit
cfb71772af
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue