-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac925d2
commit 789d16f
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters