uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/development/libraries/cosmopolitan/default.nix
Normal file
45
pkgs/development/libraries/cosmopolitan/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, unzip, bintools-unwrapped }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cosmopolitan";
|
||||
version = "unstable-2022-03-22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jart";
|
||||
repo = "cosmopolitan";
|
||||
rev = "5022f9e9207ff2b79ddd6de6d792d3280e12fb3a";
|
||||
sha256 = "sha256-UjL4wR5HhuXiQXg6Orcx2fKiVGRPMJk15P779BP1fRA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bintools-unwrapped unzip ];
|
||||
|
||||
outputs = [ "out" "dist" ];
|
||||
|
||||
# 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";
|
||||
checkTarget = "o//test";
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
dontConfigure = true;
|
||||
dontFixup = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{include,lib}
|
||||
install o/cosmopolitan.h $out/include
|
||||
install o/cosmopolitan.a o/libc/crt/crt.o o/ape/ape.{o,lds} $out/lib
|
||||
|
||||
cp -RT . "$dist"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://justine.lol/cosmopolitan/";
|
||||
description = "Your build-once run-anywhere c library";
|
||||
platforms = platforms.x86_64;
|
||||
badPlatforms = platforms.darwin;
|
||||
license = licenses.isc;
|
||||
maintainers = teams.cosmopolitan.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue