mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
gettext: enable structuredAttrs, use finalAttrs
This commit is contained in:
@@ -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" ];
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user