From 84664fb9bbc8e7b2ff13c0f242c89f291f124aad Mon Sep 17 00:00:00 2001 From: Dan Lock Date: Mon, 22 Dec 2025 17:20:23 +0000 Subject: [PATCH] cantus: init at 0.4.0 --- pkgs/by-name/ca/cantus/package.nix | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/ca/cantus/package.nix diff --git a/pkgs/by-name/ca/cantus/package.nix b/pkgs/by-name/ca/cantus/package.nix new file mode 100644 index 000000000000..2fc13a7ec16d --- /dev/null +++ b/pkgs/by-name/ca/cantus/package.nix @@ -0,0 +1,51 @@ +{ + fetchFromGitHub, + lib, + rustPlatform, + pkg-config, + autoPatchelfHook, + stdenv, + wayland, + vulkan-loader, + libxkbcommon, + nix-update-script, +}: +rustPlatform.buildRustPackage rec { + pname = "cantus"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "CodedNil"; + repo = "cantus"; + tag = version; + hash = "sha256-Mox8OGJFbQd3dy/I1O6OjqDa4FAFcZWiS+zOuTwV6js="; + }; + + cargoHash = "sha256-9+2+PkUA+s6v/Mrpo8M1lLemxClVONbbeHtric2z/Jw="; + + nativeBuildInputs = [ + pkg-config + autoPatchelfHook + ]; + + runtimeDependencies = [ + libxkbcommon + vulkan-loader + ]; + + buildInputs = [ + stdenv.cc.cc.lib + wayland + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Beautiful interactive music widget for Wayland"; + homepage = "https://github.com/CodedNil/cantus"; + license = lib.licenses.mit; + mainProgram = "cantus"; + maintainers = with lib.maintainers; [ CodedNil ]; + platforms = lib.platforms.linux; + }; +}