nixpkgs/pkgs/applications/audio/helvum/default.nix

48 lines
1,021 B
Nix
Raw Normal View History

2021-05-24 17:55:41 +02:00
{ lib
, fetchFromGitLab
2021-06-03 16:20:48 +02:00
, makeDesktopItem
, copyDesktopItems
2021-05-24 17:55:41 +02:00
, rustPlatform
, pkg-config
, clang
, libclang
, glib
, gtk4
, pipewire
}:
rustPlatform.buildRustPackage rec {
pname = "helvum";
2021-06-16 06:31:34 +02:00
version = "0.2.1";
2021-05-24 17:55:41 +02:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "ryuukyu";
repo = pname;
rev = version;
2021-06-16 06:31:34 +02:00
sha256 = "sha256-ZnpdGXK8N8c/s4qC2NXcn0Pdqrqr47iOWvVwXD9pn1A=";
2021-05-24 17:55:41 +02:00
};
2021-06-16 06:31:34 +02:00
cargoSha256 = "sha256-2v2L20rUWftXdhhuE3wiRrDIuSg6VFxfpWYMRaMUyTU=";
2021-05-24 17:55:41 +02:00
2021-06-03 16:20:48 +02:00
nativeBuildInputs = [ clang copyDesktopItems pkg-config ];
2021-05-24 17:55:41 +02:00
buildInputs = [ glib gtk4 pipewire ];
LIBCLANG_PATH = "${libclang.lib}/lib";
2021-06-03 16:20:48 +02:00
desktopItems = makeDesktopItem {
name = "Helvum";
exec = pname;
desktopName = "Helvum";
genericName = "Helvum";
categories = "AudioVideo;";
};
2021-05-24 17:55:41 +02:00
meta = with lib; {
description = "A GTK patchbay for pipewire";
homepage = "https://gitlab.freedesktop.org/ryuukyu/helvum";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fufexan ];
};
}