cosmopolitan: lint
This commit is contained in:
parent
89604525d7
commit
96d3126781
1 changed files with 11 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, unzip, cosmopolitan, bintools-unwrapped }:
|
{ lib, stdenv, fetchFromGitHub, unzip, bintools-unwrapped }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cosmopolitan";
|
pname = "cosmopolitan";
|
||||||
|
@ -11,17 +11,20 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-UjL4wR5HhuXiQXg6Orcx2fKiVGRPMJk15P779BP1fRA=";
|
sha256 = "sha256-UjL4wR5HhuXiQXg6Orcx2fKiVGRPMJk15P779BP1fRA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
patchShebangs build/
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontConfigure = true;
|
|
||||||
dontFixup = true;
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
nativeBuildInputs = [ bintools-unwrapped unzip ];
|
nativeBuildInputs = [ bintools-unwrapped unzip ];
|
||||||
|
|
||||||
# slashes are significant because upstream uses o/$(MODE)/foo.o
|
# slashes are significant because upstream uses o/$(MODE)/foo.o
|
||||||
buildFlags = "o/cosmopolitan.h o//cosmopolitan.a o//libc/crt/crt.o o//ape/ape.o o//ape/ape.lds";
|
buildFlags = "o/cosmopolitan.h o//cosmopolitan.a o//libc/crt/crt.o o//ape/ape.o o//ape/ape.lds";
|
||||||
|
checkTarget = "o//test";
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
dontConfigure = true;
|
||||||
|
dontFixup = true;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs build/
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -31,9 +34,6 @@ stdenv.mkDerivation rec {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkTarget = "o//test";
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://justine.lol/cosmopolitan/";
|
homepage = "https://justine.lol/cosmopolitan/";
|
||||||
description = "Your build-once run-anywhere c library";
|
description = "Your build-once run-anywhere c library";
|
||||||
|
|
Loading…
Reference in a new issue