Skip to content

Commit 0c10167

Browse files
authored
Merge pull request #12261 from NixOS/packaging
Packaging cleanups, add RossComputerGuy as `-llvm` maintainer
2 parents e02026a + 7ad02b6 commit 0c10167

File tree

22 files changed

+6
-90
lines changed

22 files changed

+6
-90
lines changed

packaging/dependencies.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ let
9797
];
9898
separateDebugInfo = !stdenv.hostPlatform.isStatic;
9999
hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
100+
env = prevAttrs.env or {}
101+
// lib.optionalAttrs
102+
(stdenv.isLinux
103+
&& !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")
104+
&& !(stdenv.hostPlatform.useLLVM or false))
105+
{ LDFLAGS = "-fuse-ld=gold"; };
100106
};
101107

102108
mesonLibraryLayer = finalAttrs: prevAttrs:

src/libcmd/package.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ mkMesonLibrary (finalAttrs: {
7676
(lib.mesonOption "readline-flavor" readlineFlavor)
7777
];
7878

79-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux") && !(stdenv.hostPlatform.useLLVM or false)) {
80-
LDFLAGS = "-fuse-ld=gold";
81-
};
82-
8379
meta = {
8480
platforms = lib.platforms.unix ++ lib.platforms.windows;
8581
};

src/libexpr-c/package.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{ lib
2-
, stdenv
32
, mkMesonLibrary
43

54
, nix-store-c
@@ -47,10 +46,6 @@ mkMesonLibrary (finalAttrs: {
4746
mesonFlags = [
4847
];
4948

50-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) {
51-
LDFLAGS = "-fuse-ld=gold";
52-
};
53-
5449
meta = {
5550
platforms = lib.platforms.unix ++ lib.platforms.windows;
5651
};

src/libexpr-test-support/package.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{ lib
2-
, stdenv
32
, mkMesonLibrary
43

54
, nix-store-test-support
@@ -51,10 +50,6 @@ mkMesonLibrary (finalAttrs: {
5150
mesonFlags = [
5251
];
5352

54-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) {
55-
LDFLAGS = "-fuse-ld=gold";
56-
};
57-
5853
meta = {
5954
platforms = lib.platforms.unix ++ lib.platforms.windows;
6055
};

src/libexpr-tests/package.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ mkMesonExecutable (finalAttrs: {
5656
mesonFlags = [
5757
];
5858

59-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) {
60-
LDFLAGS = "-fuse-ld=gold";
61-
};
62-
6359
passthru = {
6460
tests = {
6561
run = runCommand "${finalAttrs.pname}-run" {

src/libexpr/package.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ mkMesonLibrary (finalAttrs: {
9696
# https://github.com/NixOS/nixpkgs/issues/86131.
9797
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
9898
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
99-
} // lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux") && !(stdenv.hostPlatform.useLLVM or false)) {
100-
LDFLAGS = "-fuse-ld=gold";
10199
};
102100

103101
meta = {

src/libfetchers-tests/package.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ mkMesonExecutable (finalAttrs: {
5454
mesonFlags = [
5555
];
5656

57-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) {
58-
LDFLAGS = "-fuse-ld=gold";
59-
};
60-
6157
passthru = {
6258
tests = {
6359
run = runCommand "${finalAttrs.pname}-run" {

src/libfetchers/package.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{ lib
2-
, stdenv
32
, mkMesonLibrary
43

54
, nix-util
@@ -49,10 +48,6 @@ mkMesonLibrary (finalAttrs: {
4948
echo ${version} > ../../.version
5049
'';
5150

52-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux") && !(stdenv.hostPlatform.useLLVM or false)) {
53-
LDFLAGS = "-fuse-ld=gold";
54-
};
55-
5651
meta = {
5752
platforms = lib.platforms.unix ++ lib.platforms.windows;
5853
};

src/libflake-c/package.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{ lib
2-
, stdenv
32
, mkMesonLibrary
43

54
, nix-store-c
@@ -49,10 +48,6 @@ mkMesonLibrary (finalAttrs: {
4948
mesonFlags = [
5049
];
5150

52-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) {
53-
LDFLAGS = "-fuse-ld=gold";
54-
};
55-
5651
meta = {
5752
platforms = lib.platforms.unix ++ lib.platforms.windows;
5853
};

src/libflake-tests/package.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ mkMesonExecutable (finalAttrs: {
5656
mesonFlags = [
5757
];
5858

59-
env = lib.optionalAttrs (stdenv.isLinux && !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")) {
60-
LDFLAGS = "-fuse-ld=gold";
61-
};
62-
6359
passthru = {
6460
tests = {
6561
run = runCommand "${finalAttrs.pname}-run" {

0 commit comments

Comments
 (0)