gettext: enable structuredAttrs, use finalAttrs

This commit is contained in:
Stefan Frijters
2026-08-02 23:45:19 +02:00
parent 55bef4e745
commit 5fb27e0291

View File

@@ -12,12 +12,12 @@
# cgit) that are needed here should be included directly in Nixpkgs as
# files.
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "gettext";
version = "1.0";
src = fetchurl {
url = "mirror://gnu/gettext/${pname}-${version}.tar.gz";
url = "mirror://gnu/gettext/gettext-${finalAttrs.version}.tar.gz";
hash = "sha256-hdmbecmBpASHTALgNCF2z3XHaY4rUf5BAxz2Um2XTxo=";
};
patches = [
@@ -103,6 +103,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
enableParallelChecking = false; # fails sometimes
__structuredAttrs = true;
meta = {
description = "Well integrated set of translation tools and documentation";
@@ -135,4 +137,4 @@ stdenv.mkDerivation rec {
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
makeFlags = [ "CFLAGS=-D_FORTIFY_SOURCE=0" ];
}
})