Merge pull request #115051 from siraben/darwin-mass-fix-buildInputs=0

This commit is contained in:
Sandro 2021-03-06 20:54:39 +01:00 committed by GitHub
commit 822b70e18c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 42 additions and 24 deletions

View File

@ -3,18 +3,26 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "6.31"; version = "6.31";
pname = "clips"; pname = "clips";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${ url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
builtins.replaceStrings [ "." ] [ "" ] version builtins.replaceStrings [ "." ] [ "" ] version
}.tar.gz"; }.tar.gz";
sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6"; sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6";
}; };
postPatch = ''
substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
'';
makeFlags = [ "-C" "core" ]; makeFlags = [ "-C" "core" ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
install -D -t $out/bin core/clips install -D -t $out/bin core/clips
runHook postInstall runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
description = "A Tool for Building Expert Systems"; description = "A Tool for Building Expert Systems";
homepage = "http://www.clipsrules.net/"; homepage = "http://www.clipsrules.net/";
@ -26,6 +34,6 @@ stdenv.mkDerivation rec {
''; '';
license = licenses.publicDomain; license = licenses.publicDomain;
maintainers = [ maintainers.league ]; maintainers = [ maintainers.league ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -17,6 +17,6 @@ stdenv.mkDerivation rec {
homepage = "${baseurl}/boolstuff.html"; homepage = "${baseurl}/boolstuff.html";
license = "GPL"; license = "GPL";
maintainers = [ lib.maintainers.marcweber ]; maintainers = [ lib.maintainers.marcweber ];
platforms = lib.platforms.linux; platforms = lib.platforms.all;
}; };
} }

View File

@ -13,6 +13,6 @@ stdenv.mkDerivation rec {
description = "Simple C++ unit testing framework"; description = "Simple C++ unit testing framework";
maintainers = with maintainers; [ bosu ]; maintainers = with maintainers; [ bosu ];
license = lib.licenses.lgpl3; license = lib.licenses.lgpl3;
platforms = with platforms; linux; platforms = platforms.all;
}; };
} }

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://cpputest.github.io/"; homepage = "https://cpputest.github.io/";
description = "Unit testing and mocking framework for C/C++"; description = "Unit testing and mocking framework for C/C++";
platforms = platforms.linux ; platforms = platforms.all;
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.juliendehos ]; maintainers = [ maintainers.juliendehos ];
}; };

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
description = "Directory event monitoring daemon"; description = "Directory event monitoring daemon";
homepage = "https://www.gnu.org.ua/software/direvent/"; homepage = "https://www.gnu.org.ua/software/direvent/";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ puffnfresh ]; maintainers = with maintainers; [ puffnfresh ];
}; };
} }

View File

@ -14,6 +14,6 @@ stdenv.mkDerivation rec {
homepage = "http://www.seasip.info/Unix/LibDsk/"; homepage = "http://www.seasip.info/Unix/LibDsk/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = [ ]; maintainers = [ ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -16,6 +16,6 @@ stdenv.mkDerivation rec {
homepage = "https://mednafen.github.io/"; homepage = "https://mednafen.github.io/";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
homepage = "https://anthy.osdn.jp/"; homepage = "https://anthy.osdn.jp/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ ericsagnes ]; maintainers = with maintainers; [ ericsagnes ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
src = fetchurl { src = fetchurl {

View File

@ -32,6 +32,6 @@ stdenv.mkDerivation {
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/agedu/"; homepage = "https://www.chiark.greenend.org.uk/~sgtatham/agedu/";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ symphorien ]; maintainers = with maintainers; [ symphorien ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -1,24 +1,27 @@
{ lib, stdenv, bash, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
pname = "vimv"; pname = "vimv";
version = "unstable-2019-10-31"; version = "unstable-2019-10-31";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "thameera"; owner = "thameera";
repo = "vimv"; repo = "vimv";
rev = "4152496c1946f68a13c648fb7e583ef23dac4eb8"; rev = "4152496c1946f68a13c648fb7e583ef23dac4eb8";
sha256 = "1fsrfx2gs6bqx7wk7pgcji2i2x4alqpsi66aif4kqvnpqfhcfzjd"; sha256 = "1fsrfx2gs6bqx7wk7pgcji2i2x4alqpsi66aif4kqvnpqfhcfzjd";
}; };
phases = [ "installPhase" ];
installPhase = '' installPhase = ''
install -d $out/bin install -d $out/bin
install $src/vimv $out/bin/vimv install $src/vimv $out/bin/vimv
patchShebangs $out/bin/vimv patchShebangs $out/bin/vimv
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/thameera/vimv"; homepage = "https://github.com/thameera/vimv";
description = "Batch-rename files using Vim"; description = "Batch-rename files using Vim";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.all;
maintainers = [ maintainers.kmein ]; maintainers = [ maintainers.kmein ];
}; };
} }

View File

@ -15,6 +15,6 @@ stdenv.mkDerivation rec {
description = "Repair your broken pcap and pcapng files"; description = "Repair your broken pcap and pcapng files";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = [ maintainers.ehmry ]; maintainers = [ maintainers.ehmry ];
platforms = platforms.linux; platforms = platforms.all;
}; };
} }

View File

@ -24,6 +24,6 @@ stdenv.mkDerivation rec {
homepage = "http://loop-aes.sourceforge.net/aespipe.README"; homepage = "http://loop-aes.sourceforge.net/aespipe.README";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.goibhniu ]; maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -17,6 +17,9 @@ stdenv.mkDerivation rec {
description = "A set of cross-platform tools to compute hashes"; description = "A set of cross-platform tools to compute hashes";
homepage = "https://github.com/jessek/hashdeep"; homepage = "https://github.com/jessek/hashdeep";
license = licenses.gpl2; license = licenses.gpl2;
# Build fails on Darwin:
# > ./xml.h:103:82: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
# > void xmlout(const std::string &tag,const int64_t value){ xmlprintf(tag,"","%"PRId64,value); }
platforms = with platforms; linux ++ freebsd ++ openbsd; platforms = with platforms; linux ++ freebsd ++ openbsd;
maintainers = [ maintainers.karantan ]; maintainers = [ maintainers.karantan ];
}; };

View File

@ -15,6 +15,6 @@ stdenv.mkDerivation {
description = "Run a program using only idle cycles"; description = "Run a program using only idle cycles";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ woffs ]; maintainers = with maintainers; [ woffs ];
platforms = platforms.linux; platforms = platforms.all;
}; };
} }

View File

@ -1,8 +1,8 @@
{ lib, stdenv, fetchurl, autoreconfHook }: { lib, stdenv, fetchurl, autoreconfHook, libiconv }:
let version = "0.6.3"; in
stdenv.mkDerivation { stdenv.mkDerivation rec {
pname = "cconv"; pname = "cconv";
inherit version; version = "0.6.3";
src = fetchurl { src = fetchurl {
url = "https://github.com/xiaoyjy/cconv/archive/v${version}.tar.gz"; url = "https://github.com/xiaoyjy/cconv/archive/v${version}.tar.gz";
@ -10,12 +10,13 @@ let version = "0.6.3"; in
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libiconv ];
meta = with lib; { meta = with lib; {
description = "A iconv based simplified-traditional chinese conversion tool"; description = "A iconv based simplified-traditional chinese conversion tool";
homepage = "https://github.com/xiaoyjy/cconv"; homepage = "https://github.com/xiaoyjy/cconv";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.all;
maintainers = [ maintainers.redfish64 ]; maintainers = [ maintainers.redfish64 ];
}; };
} }

View File

@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "1pzwp3mim58afjrc92yx65mmgr1c834s1v6z4f4gyihwjn8bn3if"; sha256 = "1pzwp3mim58afjrc92yx65mmgr1c834s1v6z4f4gyihwjn8bn3if";
}; };
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp dadadodo $out/bin cp dadadodo $out/bin
@ -20,6 +22,6 @@ stdenv.mkDerivation rec {
description = "Markov chain-based text generator"; description = "Markov chain-based text generator";
homepage = "http://www.jwz.org/dadadodo"; homepage = "http://www.jwz.org/dadadodo";
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
platforms = with platforms; linux; platforms = platforms.all;
}; };
} }

View File

@ -18,5 +18,6 @@ stdenv.mkDerivation rec {
changelog = "https://sourceforge.net/p/dos2unix/dos2unix/ci/dos2unix-${version}/tree/dos2unix/NEWS.txt?format=raw"; changelog = "https://sourceforge.net/p/dos2unix/dos2unix/ci/dos2unix-${version}/tree/dos2unix/NEWS.txt?format=raw";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = with maintainers; [ c0bw3b ]; maintainers = with maintainers; [ c0bw3b ];
platforms = platforms.all;
}; };
} }

View File

@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
description = "Tool for making eBooks from fanfiction web sites"; description = "Tool for making eBooks from fanfiction web sites";
homepage = "https://github.com/JimmXinu/FanFicFare"; homepage = "https://github.com/JimmXinu/FanFicFare";
license = licenses.gpl3; license = licenses.gpl3;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ dwarfmaster ]; maintainers = with maintainers; [ dwarfmaster ];
}; };
} }

View File

@ -20,6 +20,6 @@ stdenv.mkDerivation {
homepage = "http://puszcza.gnu.org.ua/software/podiff"; homepage = "http://puszcza.gnu.org.ua/software/podiff";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ maintainers.goibhniu ]; maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }