Commit Graph

8 Commits

Author SHA1 Message Date
Sergei Trofimovich
bb0c8c6bb8 dmd: improve eval failure on pkgsLLVM package set
`dmd` requires `libgcc` to be able to run `dmd` binary. As a result
`pkgsLLVM.dmd` fails the eval as:

    $ nix build -f. pkgsLLVM.dmd
       error: attribute 'libgcc' missing

       at pkgs/development/compilers/dmd/binary.nix:31:5:

           30|     glibc
           31|     stdenv.cc.cc.libgcc
             |     ^

Such reference to non-existent attributes is an unrecoverable exception.
The change turns it into recoverable `assert`:

    $ nix build --no-link -f. pkgsLLVM.dmd
       error: assertion '((hostPlatform).isLinux -> (((stdenv).cc.cc) ? libgcc))' failed

       at pkgs/development/compilers/dmd/binary.nix:12:1:

           11| # and can't build `dmd`.
           12| assert hostPlatform.isLinux -> (stdenv.cc.cc ? libgcc);
             | ^
2024-01-12 10:07:57 +00:00
Sergei Trofimovich
794d821503 dmd: pull in missing libgcc.so dependency
Without the change autopatchelf fails to find the dependency as:

    searching for dependencies of ...-dmd-bootstrap-2.090.1/bin/dmd
        libgcc_s.so.1 -> not found!
    auto-patchelf: 6 dependencies could not be satisfied

Full build log: https://hydra.nixos.org/log/plma45m19p0cm1i04c4qzmfi54n38ydk-dmd-bootstrap-2.090.1.drv
2023-05-09 20:25:54 -07:00
OPNA2608
9695c4ee8d dmd: 2.097.2 -> 2.100.2, refactor, fix on Darwin 2022-10-23 16:12:45 +02:00
OPNA2608
d2f268745a treewide: autoPatchelfHook only on Linux 2022-03-23 21:37:39 +01:00
Felix Buehler
82cb33a0ae treewide: remove meta.version 2021-07-18 00:07:38 +02:00
Ben Siraphob
82454e9df8 treewide: remove implicit use of stdenv.lib 2021-01-27 20:04:57 +07:00
Vladimír Čunát
336bc8283b
Re-Revert "Merge #101508: libraw: 0.20.0 -> 0.20.2"
This reverts commit c778945806.

I believe this is exactly what brings the staging branch into
the right shape after the last merge from master (through staging-next);
otherwise part of staging changes would be lost
(due to being already reachable from master but reverted).
2020-10-26 08:19:17 +01:00
Lionello Lunesu
6c9beaa744 dmd: 2.085.1 -> 2.091.1
Apply patch dlang/dmd#11053
2020-04-29 07:31:52 +08:00