mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
Merge pull request #323098 from Aleksanaa/web-archives
web-archives: init at 0.5.0; libzim-glib: init at 4.0.0; libisocodes: init at 1.2.5
This commit is contained in:
commit
85ee3ddcbe
53
pkgs/by-name/li/libisocodes/package.nix
Normal file
53
pkgs/by-name/li/libisocodes/package.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
vala,
|
||||
pkg-config,
|
||||
gobject-introspection,
|
||||
libxml2,
|
||||
libgee,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libisocodes";
|
||||
version = "1.2.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "toddy15";
|
||||
repo = "libisocodes";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-a2gVqiZXDiH1byEw/s3MqDQBBZ/bmnw8OyllGYfYykQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
vala
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libxml2
|
||||
libgee
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Easily access XML data of the iso-codes package";
|
||||
longDescription = ''
|
||||
This library can be used to easily access XML data of
|
||||
the iso-codes package. It will provide an abstraction
|
||||
layer to handle both the version 3 and the upcoming
|
||||
version 4 of iso-codes. Moreover, all available
|
||||
translations can be used as well.
|
||||
|
||||
This library makes use of the GObject introspection
|
||||
features, so that it is accessible from a variety of
|
||||
programming languages, for example C, Vala, Ruby,
|
||||
Python, Perl, Lua, JavaScript, PHP and many more.
|
||||
'';
|
||||
homepage = "https://github.com/toddy15/libisocodes";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ aleksana ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
50
pkgs/by-name/li/libzim-glib/package.nix
Normal file
50
pkgs/by-name/li/libzim-glib/package.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
meson,
|
||||
ninja,
|
||||
vala,
|
||||
pkg-config,
|
||||
gobject-introspection,
|
||||
glib,
|
||||
zimlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libzim-glib";
|
||||
version = "4.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "birros";
|
||||
repo = "libzim-glib";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-C1f/ULTJIHvt/LCSRw3dsGAWUkb1i4xaCmW1+QBZd2c=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
vala
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
zimlib
|
||||
];
|
||||
|
||||
# requires downloading test sample of a specific zimlib version
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Partial GObject/C bindings for libzim";
|
||||
homepage = "https://github.com/birros/libzim-glib";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ aleksana ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
78
pkgs/by-name/we/web-archives/package.nix
Normal file
78
pkgs/by-name/we/web-archives/package.nix
Normal file
@ -0,0 +1,78 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
meson,
|
||||
ninja,
|
||||
vala,
|
||||
pkg-config,
|
||||
wrapGAppsHook3,
|
||||
libzim-glib,
|
||||
sqlite,
|
||||
webkitgtk_4_1,
|
||||
tracker,
|
||||
libxml2,
|
||||
libisocodes,
|
||||
libhandy,
|
||||
glib-networking,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "web-archives";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "birros";
|
||||
repo = "web-archives";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-EYHChI+4tpjRp4KveHTB+5BSLtw0YLp5z2JJmA0xTlM=";
|
||||
};
|
||||
|
||||
web-archive-darkreader = fetchurl {
|
||||
# This is the same with build-aux/darkreader/Makefile
|
||||
url = "https://github.com/birros/web-archives-darkreader/releases/download/v0.0.1/web-archives-darkreader_v0.0.1.js";
|
||||
hash = "sha256-juhAqs2eCYZKerLnX3NvaW3NS0uOhqB7pyf/PRDvMqE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace meson.build \
|
||||
--replace-fail \
|
||||
"'make', '-C', 'build-aux/darkreader'" \
|
||||
"'cp', '${finalAttrs.web-archive-darkreader}', 'build-aux/darkreader/web-archives-darkreader.js'"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
vala
|
||||
pkg-config
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libzim-glib
|
||||
sqlite
|
||||
webkitgtk_4_1
|
||||
tracker
|
||||
libxml2
|
||||
libisocodes
|
||||
libhandy
|
||||
glib-networking
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
passthru = {
|
||||
inherit (finalAttrs) web-archive-darkreader;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Web archives reader offering the ability to browse offline millions of articles";
|
||||
homepage = "https://github.com/birros/web-archives";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
mainProgram = "web-archives";
|
||||
maintainers = with lib.maintainers; [ aleksana ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
@ -64,6 +64,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://www.openzim.org/wiki/Zimlib";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ greg ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user