2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
2021-06-06 07:54:09 +00:00
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
2021-05-28 09:39:13 +00:00
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, clang
|
|
|
|
, libclang
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, pipewire
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "helvum";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "0.3.1";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "ryuukyu";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256-f6+6Qicg5J6oWcafG4DF0HovTmF4r6yfw6p/3dJHmB4=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
cargoSha256 = "sha256-zGa6nAmOOrpiMr865J06Ez3L6lPL0j18/lW8lw1jPyU=";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
nativeBuildInputs = [ clang copyDesktopItems pkg-config ];
|
2021-05-28 09:39:13 +00:00
|
|
|
buildInputs = [ glib gtk4 pipewire ];
|
|
|
|
|
|
|
|
LIBCLANG_PATH = "${libclang.lib}/lib";
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
desktopItems = makeDesktopItem {
|
|
|
|
name = "Helvum";
|
|
|
|
exec = pname;
|
|
|
|
desktopName = "Helvum";
|
|
|
|
genericName = "Helvum";
|
|
|
|
categories = "AudioVideo;";
|
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A GTK patchbay for pipewire";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/ryuukyu/helvum";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fufexan ];
|
|
|
|
};
|
|
|
|
}
|