mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
53 lines
901 B
Nix
53 lines
901 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gettext,
|
|
libdnf,
|
|
pkg-config,
|
|
glib,
|
|
libpeas,
|
|
libsmartcols,
|
|
help2man,
|
|
zchunk,
|
|
pcre2,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "microdnf";
|
|
version = "3.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rpm-software-management";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-R7jOeH6pw/THLXxLezp2AmE8lUBagKMRJ0XfXgdLi2E=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
gettext
|
|
help2man
|
|
];
|
|
|
|
buildInputs = [
|
|
libdnf
|
|
glib
|
|
libpeas
|
|
libsmartcols
|
|
zchunk
|
|
pcre2.dev
|
|
];
|
|
|
|
meta = {
|
|
description = "Lightweight implementation of dnf in C";
|
|
homepage = "https://github.com/rpm-software-management/microdnf";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ rb2k ];
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
mainProgram = "microdnf";
|
|
};
|
|
}
|