4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
25 lines
789 B
Nix
25 lines
789 B
Nix
{ lib, stdenv, fetchurl, pkgconfig, meson, ninja, gettext, glib, libxml2, perl, python3
|
|
, libxslt, libarchive, bzip2, lzma, json-glib, libsoup
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "osinfo-db-tools";
|
|
version = "1.8.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://releases.pagure.org/libosinfo/${pname}-${version}.tar.xz";
|
|
sha256 = "038q3gzdbkfkhpicj0755mw1q4gbvn57pslpw8n2dp3lds9im0g9";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext perl python3 ];
|
|
buildInputs = [ glib json-glib libxml2 libxslt libarchive bzip2 lzma libsoup ];
|
|
|
|
meta = with lib; {
|
|
description = "Tools for managing the osinfo database";
|
|
homepage = "https://libosinfo.org/";
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|