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
31
pkgs/development/libraries/libiberty/default.nix
Normal file
31
pkgs/development/libraries/libiberty/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, buildPackages
|
||||
, staticBuild ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
let inherit (buildPackages.buildPackages) gcc; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libiberty";
|
||||
version = "${gcc.cc.version}";
|
||||
|
||||
inherit (gcc.cc) src;
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
postUnpack = "sourceRoot=\${sourceRoot}/libiberty";
|
||||
|
||||
configureFlags = [ "--enable-install-libiberty" ]
|
||||
++ lib.optional (!staticBuild) "--enable-shared";
|
||||
|
||||
postInstall = lib.optionalString (!staticBuild) ''
|
||||
cp pic/libiberty.a $out/lib*/libiberty.a
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://gcc.gnu.org/";
|
||||
license = licenses.lgpl2;
|
||||
description = "Collection of subroutines used by various GNU programs";
|
||||
maintainers = with maintainers; [ abbradar ericson2314 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue