aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix-overlays/ldc/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix-overlays/ldc/package.nix')
-rw-r--r--nix-overlays/ldc/package.nix29
1 files changed, 22 insertions, 7 deletions
diff --git a/nix-overlays/ldc/package.nix b/nix-overlays/ldc/package.nix
index 00b41cd..5439e27 100644
--- a/nix-overlays/ldc/package.nix
+++ b/nix-overlays/ldc/package.nix
@@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
- fetchpatch,
callPackage,
makeWrapper,
removeReferencesTo,
@@ -64,7 +63,14 @@ stdenv.mkDerivation (finalAttrs: {
'';
nativeBuildInputs = [
- cmake ldcBootstrap lit lit.python llvm_22.dev makeWrapper ninja unzip
+ cmake
+ ldcBootstrap
+ lit
+ lit.python
+ llvm_22.dev
+ makeWrapper
+ ninja
+ unzip
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
# https://github.com/NixOS/nixpkgs/pull/36378#issuecomment-385034818
gdb
@@ -138,8 +144,6 @@ stdenv.mkDerivation (finalAttrs: {
find $out/bin -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${ldcBootstrap} '{}' +
'';
- # doCheck = false;
-
disallowedReferences = [ ldcBootstrap ];
meta = with lib; {
@@ -147,10 +151,21 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/ldc-developers/ldc";
changelog = "https://github.com/ldc-developers/ldc/releases/tag/v${finalAttrs.version}";
# from https://github.com/ldc-developers/ldc/blob/master/LICENSE
- license = with licenses; [ bsd3 boost mit ncsa gpl2Plus ];
+ license = with licenses; [
+ bsd3
+ boost
+ mit
+ ncsa
+ gpl2Plus
+ ];
mainProgram = "ldc2";
maintainers = with maintainers; [ lionello jtbx ];
- platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
+ platforms = [
+ "x86_64-linux"
+ "i686-linux"
+ "aarch64-linux"
+ "aarch64-darwin"
+ ];
};
passthru.ldcBootstrap = ldcBootstrap;
@@ -182,7 +197,7 @@ stdenv.mkDerivation (finalAttrs: {
# references to the compiler binaries.
no-references-to-compiler = helloWorld.overrideAttrs {
disallowedReferences = [ ldc ];
- dFlags = ["-g"];
+ dFlags = [ "-g" ];
};
};
})