From d3e7821e8f5963cda82926a4cf87a34df7e6d39c Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Tue, 11 Mar 2025 21:27:42 +0800 Subject: [PATCH] qwertone: init at 0.5.0 --- pkgs/by-name/qw/qwertone/package.nix | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/qw/qwertone/package.nix diff --git a/pkgs/by-name/qw/qwertone/package.nix b/pkgs/by-name/qw/qwertone/package.nix new file mode 100644 index 000000000000..9ecd2f0dc3d9 --- /dev/null +++ b/pkgs/by-name/qw/qwertone/package.nix @@ -0,0 +1,46 @@ +{ + lib, + rustPlatform, + fetchFromGitLab, + wrapGAppsHook3, + pkg-config, + alsa-lib, + atk, + gtk3, +}: + +rustPlatform.buildRustPackage rec { + pname = "qwertone"; + version = "0.5.0"; + + src = fetchFromGitLab { + domain = "gitlab.com"; + owner = "azymohliad"; + repo = "qwertone"; + tag = "v${version}"; + hash = "sha256-GD7iFDAaS6D7DGPvK+Cof4rVbUwPX9aCI1jfc0XTxn8="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-5hrjmX+eUPrj48Ii1YHPZFPMvynowSwSArcNnUOw4hc="; + + nativeBuildInputs = [ + wrapGAppsHook3 + pkg-config + ]; + + buildInputs = [ + alsa-lib + atk + gtk3 + ]; + + meta = { + description = "Simple music synthesizer app based on usual qwerty-keyboard for input"; + mainProgram = "qwertone"; + homepage = "https://gitlab.com/azymohliad/qwertone"; + platforms = lib.platforms.linux; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ linsui ]; + }; +}