mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
57 lines
988 B
Nix
57 lines
988 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromSourcehut
|
|
, audit
|
|
, pkg-config
|
|
, libcap
|
|
, gperf
|
|
, meson
|
|
, ninja
|
|
, python3
|
|
, getent
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "basu";
|
|
version = "0.2.1";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~emersion";
|
|
repo = "basu";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-zIaEIIo8lJeas2gVjMezO2hr8RnMIT7iiCBilZx5lRQ=";
|
|
};
|
|
|
|
outputs = [ "out" "dev" "lib" ];
|
|
|
|
buildInputs = [
|
|
audit
|
|
gperf
|
|
libcap
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
python3
|
|
getent
|
|
];
|
|
|
|
preConfigure = ''
|
|
pushd src/basic
|
|
patchShebangs \
|
|
generate-cap-list.sh generate-errno-list.sh generate-gperfs.py
|
|
popd
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://sr.ht/~emersion/basu";
|
|
description = "The sd-bus library, extracted from systemd";
|
|
mainProgram = "basuctl";
|
|
license = lib.licenses.lgpl21Only;
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|