Skip to content

Commit

Permalink
llvm*Packages: fix output selection (lib.get*)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed May 11, 2021
1 parent 10e16ec commit 6b3b794
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 38 deletions.
8 changes: 4 additions & 4 deletions pkgs/development/compilers/llvm/10/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ let

libllvm = callPackage ./llvm { };

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src;
};

clang-unwrapped = tools.libclang.out;
clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };

# disabled until recommonmark supports sphinx 3
#Llvm-manpages = lowPrio (tools.libllvm.override {
Expand Down
9 changes: 4 additions & 5 deletions pkgs/development/compilers/llvm/11/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@ let

libllvm = callPackage ./llvm { };

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src;
};

clang-unwrapped = tools.libclang.out;

clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };
# disabled until recommonmark supports sphinx 3
#Llvm-manpages = lowPrio (tools.libllvm.override {
# enableManpages = true;
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/compilers/llvm/12/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ let
inherit llvm_meta;
};

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src llvm_meta;
};

clang-unwrapped = tools.libclang.out;
clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };

# disabled until recommonmark supports sphinx 3
#Llvm-manpages = lowPrio (tools.libllvm.override {
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/compilers/llvm/5/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ let

libllvm = callPackage ./llvm { };

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libllvm-polly = callPackage ./llvm { enablePolly = true; };

llvm-polly = tools.libllvm-polly.lib;
llvm-polly = tools.libllvm-polly.lib // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src;
};

clang-unwrapped = tools.libclang.out;
clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };

llvm-manpages = lowPrio (tools.libllvm.override {
enableManpages = true;
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/compilers/llvm/6/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ let

libllvm = callPackage ./llvm { };

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libllvm-polly = callPackage ./llvm { enablePolly = true; };

llvm-polly = tools.libllvm-polly.lib;
llvm-polly = tools.libllvm-polly.lib // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src;
};

clang-unwrapped = tools.libclang.out;
clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };

llvm-manpages = lowPrio (tools.libllvm.override {
enableManpages = true;
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/compilers/llvm/7/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ let

libllvm = callPackage ./llvm { };

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libllvm-polly = callPackage ./llvm { enablePolly = true; };

llvm-polly = tools.libllvm-polly.lib;
llvm-polly = tools.libllvm-polly.lib // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src;
};

clang-unwrapped = tools.libclang.out;
clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };

clang-polly-unwrapped = callPackage ./clang {
inherit clang-tools-extra_src;
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/compilers/llvm/8/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ let

libllvm = callPackage ./llvm { };

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libllvm-polly = callPackage ./llvm { enablePolly = true; };

llvm-polly = tools.libllvm-polly.lib;
llvm-polly = tools.libllvm-polly.lib // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src;
};

clang-unwrapped = tools.libclang.out;
clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };

clang-polly-unwrapped = callPackage ./clang {
inherit clang-tools-extra_src;
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/compilers/llvm/9/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ let

libllvm = callPackage ./llvm { };

# `llvm` historically had the binaries. But this migration
# technique also impedes `lib.get*`. Perhaps we will revisit it.
llvm = tools.libllvm.out;
# `llvm` historically had the binaries. When choosing an output explicitly,
# we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get*
llvm = tools.libllvm.out // { outputUnspecified = true; };

libllvm-polly = callPackage ./llvm { enablePolly = true; };

llvm-polly = tools.libllvm-polly.lib;
llvm-polly = tools.libllvm-polly.lib // { outputUnspecified = true; };

libclang = callPackage ./clang {
inherit clang-tools-extra_src;
};

clang-unwrapped = tools.libclang.out;
clang-unwrapped = tools.libclang.out // { outputUnspecified = true; };

clang-polly-unwrapped = callPackage ./clang {
inherit clang-tools-extra_src;
Expand Down

0 comments on commit 6b3b794

Please sign in to comment.