2021-05-24 16:55:41 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
2021-06-03 15:20:48 +01:00
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
2021-05-24 16:55:41 +01:00
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, clang
|
|
|
|
, libclang
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, pipewire
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "helvum";
|
2021-08-08 15:01:20 +01:00
|
|
|
version = "0.3.0";
|
2021-05-24 16:55:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "ryuukyu";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-08 15:01:20 +01:00
|
|
|
sha256 = "sha256-AlHCK4pWaoNjR0eflxHBsuVaaily/RvCbgJv/ByQZK4=";
|
2021-05-24 16:55:41 +01:00
|
|
|
};
|
|
|
|
|
2021-08-08 15:01:20 +01:00
|
|
|
cargoSha256 = "sha256-mAhh12rGvQjs2xtm+OrtVv0fgG6qni/QM/oRYoFR7U8=";
|
2021-05-24 16:55:41 +01:00
|
|
|
|
2021-06-03 15:20:48 +01:00
|
|
|
nativeBuildInputs = [ clang copyDesktopItems pkg-config ];
|
2021-05-24 16:55:41 +01:00
|
|
|
buildInputs = [ glib gtk4 pipewire ];
|
|
|
|
|
|
|
|
LIBCLANG_PATH = "${libclang.lib}/lib";
|
|
|
|
|
2021-06-03 15:20:48 +01:00
|
|
|
desktopItems = makeDesktopItem {
|
|
|
|
name = "Helvum";
|
|
|
|
exec = pname;
|
|
|
|
desktopName = "Helvum";
|
|
|
|
genericName = "Helvum";
|
|
|
|
categories = "AudioVideo;";
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:55:41 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A GTK patchbay for pipewire";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/ryuukyu/helvum";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fufexan ];
|
|
|
|
};
|
|
|
|
}
|