mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
fossil: Remove crossAttrs
TCC= (and BCC=) no longer needed as new Makefile defines with CC (and CC_FOR_BUILD).
This commit is contained in:
parent
ae429f8e55
commit
a1f4d033dd
@ -1,5 +1,7 @@
|
|||||||
{stdenv, libiconv, fetchurl, zlib, openssl, tcl, readline, sqlite, ed, which
|
{ stdenv
|
||||||
, tcllib, withJson ? true}:
|
, libiconv, fetchurl, zlib, openssl, tcl, readline, sqlite, ed, which
|
||||||
|
, tcllib, withJson ? true
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "fossil-${version}";
|
name = "fossil-${version}";
|
||||||
@ -18,11 +20,11 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
||||||
nativeBuildInputs = [ tcl ];
|
nativeBuildInputs = [ tcl ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||||
|
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = stdenv.lib.optional doCheck ''
|
||||||
export TCLLIBPATH="${tcllib}/lib/tcllib${tcllib.version}"
|
export TCLLIBPATH="${tcllib}/lib/tcllib${tcllib.version}"
|
||||||
'';
|
'';
|
||||||
configureFlags = if withJson then "--json" else "";
|
configureFlags = if withJson then "--json" else "";
|
||||||
@ -36,11 +38,6 @@ stdenv.mkDerivation rec {
|
|||||||
INSTALLDIR=$out/bin make install
|
INSTALLDIR=$out/bin make install
|
||||||
'';
|
'';
|
||||||
|
|
||||||
crossAttrs = {
|
|
||||||
doCheck = false;
|
|
||||||
makeFlags = [ "TCC=$CC" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Simple, high-reliability, distributed software configuration management";
|
description = "Simple, high-reliability, distributed software configuration management";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user