nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 53 lines 939 B view raw
1{ lib 2, stdenv 3, fetchFromSourcehut 4, audit 5, pkg-config 6, libcap 7, gperf 8, meson 9, ninja 10, python3 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "basu"; 15 version = "0.2.1"; 16 17 src = fetchFromSourcehut { 18 owner = "~emersion"; 19 repo = "basu"; 20 rev = "v${finalAttrs.version}"; 21 hash = "sha256-zIaEIIo8lJeas2gVjMezO2hr8RnMIT7iiCBilZx5lRQ="; 22 }; 23 24 outputs = [ "out" "dev" "lib" ]; 25 26 buildInputs = [ 27 audit 28 gperf 29 libcap 30 ]; 31 32 nativeBuildInputs = [ 33 pkg-config 34 meson 35 ninja 36 python3 37 ]; 38 39 preConfigure = '' 40 pushd src/basic 41 patchShebangs \ 42 generate-cap-list.sh generate-errno-list.sh generate-gperfs.py 43 popd 44 ''; 45 46 meta = { 47 homepage = "https://sr.ht/~emersion/basu"; 48 description = "The sd-bus library, extracted from systemd"; 49 license = lib.licenses.lgpl21Only; 50 maintainers = with lib.maintainers; [ AndersonTorres ]; 51 platforms = lib.platforms.linux; 52 }; 53})