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
48
pkgs/applications/misc/kiwix/default.nix
Normal file
48
pkgs/applications/misc/kiwix/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub
|
||||
, callPackage
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, qmake
|
||||
, qtbase
|
||||
, qtwebengine
|
||||
, qtsvg
|
||||
, qtimageformats
|
||||
, aria2
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "kiwix";
|
||||
version = "2.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "${pname}-desktop";
|
||||
rev = version;
|
||||
sha256 = "12v43bcg4g8fcp02y2srsfdvcb7dpl4pxb9z7a235006s0kfv8yn";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtwebengine
|
||||
qtsvg
|
||||
qtimageformats
|
||||
(callPackage ./lib.nix {})
|
||||
];
|
||||
|
||||
qtWrapperArgs = [
|
||||
"--prefix PATH : ${lib.makeBinPath [ aria2 ]}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An offline reader for Web content";
|
||||
homepage = "https://kiwix.org";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ajs124 ];
|
||||
};
|
||||
}
|
||||
55
pkgs/applications/misc/kiwix/lib.nix
Normal file
55
pkgs/applications/misc/kiwix/lib.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ stdenv, lib, fetchFromGitHub
|
||||
, meson, ninja, pkg-config
|
||||
, python3
|
||||
, curl
|
||||
, icu
|
||||
, pugixml
|
||||
, zimlib
|
||||
, zlib
|
||||
, libmicrohttpd
|
||||
, mustache-hpp
|
||||
, gtest
|
||||
}:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kiwix-lib";
|
||||
version = "9.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kiwix";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "034nk6l623v78clrs2d0k1vg69sbzrd8c0q79qiqmlkinck1nkxw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
icu
|
||||
zlib
|
||||
mustache-hpp
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
curl
|
||||
libmicrohttpd
|
||||
pugixml
|
||||
zimlib
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
gtest
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs scripts
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue