libfyaml: use finalAttrs pattern
This commit is contained in:
parent
4b1e71380f
commit
caa9885f7c
1 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook }:
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "libfyaml";
|
pname = "libfyaml";
|
||||||
version = "0.8";
|
version = "0.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pantoniou";
|
owner = "pantoniou";
|
||||||
repo = pname;
|
repo = "libfyaml";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-b/jRKe23NIVSydoczI+Ax2VjBJLfAEwF8SW61vIDTwA=";
|
hash = "sha256-b/jRKe23NIVSydoczI+Ax2VjBJLfAEwF8SW61vIDTwA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,4 +28,4 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = [ maintainers.marsam ];
|
maintainers = [ maintainers.marsam ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue