Skip to content

Commit

Permalink
basu: init at 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonTorres committed May 21, 2023
1 parent ac925d2 commit 789d16f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/development/libraries/basu/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{ lib
, stdenv
, fetchFromSourcehut
, audit
, pkg-config
, libcap
, gperf
, meson
, ninja
, python3
}:

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
];

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";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,8 @@ with pkgs;

sdbus-cpp = callPackage ../development/libraries/sdbus-cpp { };

basu = callPackage ../development/libraries/basu { };

sdlookup = callPackage ../tools/security/sdlookup { };

sgrep = callPackage ../tools/text/sgrep { };
Expand Down

0 comments on commit 789d16f

Please sign in to comment.