diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-12-30 00:08:26 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-12-30 00:08:26 -0300 |
commit | dae55bc2bd7af15c1287ea1f57b99448b86c0a77 (patch) | |
tree | 861cffc1da2f6d5a739c7ce6de3dc631cf255da7 /pkgs/development/tools/castxml | |
parent | 726088a96454587d4a640d28ec442126518e449b (diff) | |
download | nixlib-dae55bc2bd7af15c1287ea1f57b99448b86c0a77.tar nixlib-dae55bc2bd7af15c1287ea1f57b99448b86c0a77.tar.gz nixlib-dae55bc2bd7af15c1287ea1f57b99448b86c0a77.tar.bz2 nixlib-dae55bc2bd7af15c1287ea1f57b99448b86c0a77.tar.lz nixlib-dae55bc2bd7af15c1287ea1f57b99448b86c0a77.tar.xz nixlib-dae55bc2bd7af15c1287ea1f57b99448b86c0a77.tar.zst nixlib-dae55bc2bd7af15c1287ea1f57b99448b86c0a77.zip |
castxml: remove `inherit (.*)` reference on all-packages.nix
According to the issue linked at the end, filling arguments for `callPackage` in all-packages.nix breaks splicing and makes the expressions incompatible with cross-compilation. This issue is more pronounced in the many `inherit (darwin)` calls. However, it is present in similar contexts too. The idea here is not the smartest: it just hides those inheritances from `all-packages.nix` and sends them to the `default.nix` expressions. Issue: https://github.com/NixOS/nixpkgs/issues/204303
Diffstat (limited to 'pkgs/development/tools/castxml')
-rw-r--r-- | pkgs/development/tools/castxml/default.nix | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/pkgs/development/tools/castxml/default.nix b/pkgs/development/tools/castxml/default.nix index d26ef76bb8cb..69e48a28a2e3 100644 --- a/pkgs/development/tools/castxml/default.nix +++ b/pkgs/development/tools/castxml/default.nix @@ -1,17 +1,20 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, libclang -, libffi -, libxml2 -, llvm -, sphinx -, zlib -, withManual ? true -, withHTML ? true +{ lib, + stdenv, + fetchFromGitHub, + cmake, + libffi, + libxml2, + zlib, + withManual ? true, + withHTML ? true, + llvmPackages, + python3, }: +let + inherit (llvmPackages) libclang llvm; + inherit (python3.pkgs) sphinx; +in stdenv.mkDerivation (finalAttrs: { pname = "castxml"; version = "0.5.1"; |