webkitgtk: Display ABI version in name
To make it easier to distinguish which versions are in the closure.
This commit is contained in:
parent
ccc127b3da
commit
57e596a865
1 changed files with 5 additions and 4 deletions
|
@ -66,16 +66,17 @@
|
||||||
, systemdSupport ? stdenv.isLinux
|
, systemdSupport ? stdenv.isLinux
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "webkitgtk";
|
pname = "webkitgtk";
|
||||||
version = "2.37.90";
|
version = "2.37.90";
|
||||||
|
name = "${finalAttrs.pname}-${finalAttrs.version}+abi=${if lib.versionAtLeast gtk3.version "4.0" then "5.0" else "4.${if lib.versions.major libsoup.version == "2" then "0" else "1"}"}";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
separateDebugInfo = stdenv.isLinux;
|
separateDebugInfo = stdenv.isLinux;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://webkitgtk.org/releases/${pname}-${version}.tar.xz";
|
url = "https://webkitgtk.org/releases/webkitgtk-${finalAttrs.version}.tar.xz";
|
||||||
sha256 = "sha256-5VRyTvUnhJ02+3VNQrDNs5/0pscRhhtU25h0DV3mD5E=";
|
sha256 = "sha256-5VRyTvUnhJ02+3VNQrDNs5/0pscRhhtU25h0DV3mD5E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -163,7 +164,7 @@ stdenv.mkDerivation rec {
|
||||||
# (We pick just that one because using the other headers from `sdk` is not
|
# (We pick just that one because using the other headers from `sdk` is not
|
||||||
# compatible with our C++ standard library. This header is already in
|
# compatible with our C++ standard library. This header is already in
|
||||||
# the standard library on aarch64)
|
# the standard library on aarch64)
|
||||||
runCommand "${pname}_headers" { } ''
|
runCommand "webkitgtk_headers" { } ''
|
||||||
install -Dm444 "${lib.getDev apple_sdk.sdk}"/include/libproc.h "$out"/include/libproc.h
|
install -Dm444 "${lib.getDev apple_sdk.sdk}"/include/libproc.h "$out"/include/libproc.h
|
||||||
''
|
''
|
||||||
) ++ lib.optionals stdenv.isLinux [
|
) ++ lib.optionals stdenv.isLinux [
|
||||||
|
@ -242,4 +243,4 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = teams.gnome.members;
|
maintainers = teams.gnome.members;
|
||||||
broken = stdenv.isDarwin;
|
broken = stdenv.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue