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
50
pkgs/applications/misc/liberasurecode/default.nix
Normal file
50
pkgs/applications/misc/liberasurecode/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, doxygen
|
||||
, installShellFiles
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "liberasurecode";
|
||||
version = "1.6.3";
|
||||
|
||||
outputs = [ "out" "dev" "doc" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openstack";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-HCp+FQ9nq4twk6FtfKhzT80wXXJbvG+clrDO2/9ATpU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace doc/doxygen.cfg.in \
|
||||
--replace "GENERATE_MAN = NO" "GENERATE_MAN = YES"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook doxygen installShellFiles ];
|
||||
|
||||
buildInputs = [ zlib ];
|
||||
|
||||
configureFlags = [ "--enable-doxygen" ];
|
||||
|
||||
postInstall = ''
|
||||
# remove useless man pages about directories
|
||||
rm doc/man/man*/_*
|
||||
installManPage doc/man/man*/*
|
||||
|
||||
moveToOutput share/liberasurecode/ $doc
|
||||
'';
|
||||
|
||||
checkTarget = "test";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Erasure Code API library written in C with pluggable Erasure Code backends";
|
||||
homepage = "https://github.com/openstack/liberasurecode";
|
||||
license = licenses.bsd2;
|
||||
maintainers = teams.openstack.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue