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/applications/networking/p2p/mldonkey/default.nix
Normal file
40
pkgs/applications/networking/p2p/mldonkey/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, fetchpatch, ocamlPackages, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mldonkey";
|
||||
version = "3.1.7-2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ygrek.org/p/release/mldonkey/mldonkey-${version}.tar.bz2";
|
||||
sha256 = "b926e7aa3de4b4525af73c88f1724d576b4add56ef070f025941dd51cb24a794";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes C++17 compat
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ygrek/mldonkey/pull/66/commits/20ff84c185396f3d759cf4ef46b9f0bd33a51060.patch";
|
||||
hash = "sha256-MCqx0jVfOaLkZhhv0b1cTdO6BK2/f6TxTWmx+NZjXME=";
|
||||
})
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace Makefile --replace '+camlp4' \
|
||||
'${ocamlPackages.camlp4}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/camlp4'
|
||||
'';
|
||||
|
||||
buildInputs = (with ocamlPackages; [
|
||||
ocaml
|
||||
camlp4
|
||||
num
|
||||
]) ++ [
|
||||
zlib
|
||||
];
|
||||
|
||||
meta = {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Client for many p2p networks, with multiple frontends";
|
||||
homepage = "http://mldonkey.sourceforge.net/";
|
||||
license = lib.licenses.gpl2Only;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue