igraph: use finalAttrs-based self-references
this allows overrideAttrs to work better
This commit is contained in:
parent
483daed240
commit
75f5ea32fc
|
@ -24,19 +24,19 @@ assert (blas.isILP64 == lapack.isILP64 &&
|
||||||
blas.isILP64 == arpack.isILP64 &&
|
blas.isILP64 == arpack.isILP64 &&
|
||||||
!blas.isILP64);
|
!blas.isILP64);
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "igraph";
|
pname = "igraph";
|
||||||
version = "0.10.6";
|
version = "0.10.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "igraph";
|
owner = "igraph";
|
||||||
repo = pname;
|
repo = finalAttrs.pname;
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-HNc+xU7Gcv9BSpb2OgyG9tCbk/dfWw5Ix1c2gvFZklE=";
|
hash = "sha256-HNc+xU7Gcv9BSpb2OgyG9tCbk/dfWw5Ix1c2gvFZklE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
echo "${version}" > IGRAPH_VERSION
|
echo "${finalAttrs.version}" > IGRAPH_VERSION
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" ];
|
outputs = [ "out" "dev" "doc" ];
|
||||||
|
@ -95,9 +95,9 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "C library for complex network analysis and graph theory";
|
description = "C library for complex network analysis and graph theory";
|
||||||
homepage = "https://igraph.org/";
|
homepage = "https://igraph.org/";
|
||||||
changelog = "https://github.com/igraph/igraph/blob/${src.rev}/CHANGELOG.md";
|
changelog = "https://github.com/igraph/igraph/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ MostAwesomeDude dotlambda ];
|
maintainers = with maintainers; [ MostAwesomeDude dotlambda ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue