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
40
pkgs/development/libraries/physfs/default.nix
Normal file
40
pkgs/development/libraries/physfs/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, cmake, doxygen, zlib, Foundation, Carbon }:
|
||||
|
||||
let
|
||||
generic = version: sha256:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "physfs";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/downloads/${pname}-${version}.tar.bz2";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake doxygen ];
|
||||
|
||||
buildInputs = [ zlib ]
|
||||
++ lib.optionals stdenv.isDarwin [ Foundation Carbon ];
|
||||
|
||||
patchPhase = ''
|
||||
sed s,-Werror,, -i CMakeLists.txt
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
./test_physfs --version
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://icculus.org/physfs/";
|
||||
description = "Library to provide abstract access to various archives";
|
||||
license = licenses.free;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
physfs_2 = generic "2.0.3" "0sbbyqzqhyf0g68fcvvv20n3928j0x6ik1njmhn1yigvq2bj11na";
|
||||
physfs = generic "3.0.2" "0qzqz4r88gvd8m7sh2z5hvqcr0jfr4wb2f77c19xycyn0rigfk9h";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue