mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1017 B
Nix
44 lines
1017 B
Nix
{ lib
|
|
, stdenv
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, fetchurl
|
|
, expat
|
|
, gpgme
|
|
, libgcrypt
|
|
, libxml2
|
|
, libxslt
|
|
, gnutls
|
|
, curl
|
|
, docbook_xsl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libdatovka";
|
|
version = "0.7.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://gitlab.nic.cz/datovka/libdatovka/-/archive/v${version}/libdatovka-v${version}.tar.gz";
|
|
sha256 = "sha256-D/4+ldVnJrPAPrgrV1V4FfgCzgMbw/f/rxWT7Esf8Wk=";
|
|
};
|
|
|
|
patches = [
|
|
./libdatovka-deprecated-fn-curl.patch
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-docbook-xsl-stylesheets=${docbook_xsl}/xml/xsl/docbook"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
buildInputs = [ expat gpgme libgcrypt libxml2 libxslt gnutls curl docbook_xsl ];
|
|
|
|
meta = with lib; {
|
|
description = "Client library for accessing SOAP services of Czech government-provided Databox infomation system";
|
|
homepage = "https://gitlab.nic.cz/datovka/libdatovka";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.ovlach ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|