commit 7dab855fdec4d59bc70e8d71e5a5b4ea9f24626e
parent a1d8d21e65918e38e85af813439f328232542e55
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Mon, 28 Jul 2025 18:54:02 +0200
parent a1d8d21e65918e38e85af813439f328232542e55
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Mon, 28 Jul 2025 18:54:02 +0200
packages: add `sointu`
1 file changed, 64 insertions(+), 0 deletions(-)
diff --git a/packages/sointu.nix b/packages/sointu.nix @@ -0,0 +1,64 @@ +{ + fetchFromGitHub, + buildGoModule, + pkg-config, + libxkbcommon, + alsa-lib, + wayland, + vulkan-headers, + xorg, + libGL, + lib, + makeWrapper, + installShellFiles, + ... +}: + +buildGoModule (finalAttrs: { + pname = "sointu"; + version = "unstable-2025-07-24"; + rev = "fe0106bb604f6f898091c6c7a042b97b9e2b2c48"; + + src = fetchFromGitHub { + owner = "vsariola"; + repo = finalAttrs.pname; + rev = finalAttrs.rev; + hash = "sha256-N1Z9uccQXnrsLtyvUdb7IwPsDzziLeu2UYtndwWTQXA="; + }; + + vendorHash = "sha256-gLDLKqu6k7/nwv6xHUE6MIYrbQFfVFAuUiMbLptcE5k="; + proxyVendor = true; + + subPackages = [ + "cmd/sointu-compile" + "cmd/sointu-play" + "cmd/sointu-track" + ]; + + nativeBuildInputs = [ + pkg-config + makeWrapper + ]; + + buildInputs = [ + libxkbcommon + alsa-lib + wayland + libGL + vulkan-headers + xorg.libX11 + xorg.libXcursor + xorg.libXfixes + ]; + + env.CGO_ENABLED = true; + + doCheck = false; + + meta = with lib; { + description = "Fork of 4klang that can target 386, amd64 and WebAssembly. Tools run on Windows, Mac & Linux"; + homepage = "https://github.com/vsariola/sointu"; + license = licenses.mit; + }; + +})