nixos-config/pkgs/renoise.nix

22 lines
629 B
Nix
Raw Permalink Normal View History

2024-06-25 13:57:09 +02:00
{ pkgs, ... }:
let
platforms = {
x86_64-linux = {
archSuffix = "x86_64";
hash = "sha256-b+YXBVnxu54HfC/tWapcs/ZYzwBOJswYbEbEU3SVNss=";
};
aarch64-linux = {
archSuffix = "arm64";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
};
platform = platforms.${pkgs.stdenv.system} or (throw "unsupported system ${pkgs.stdenv.hostPlatform.system}");
in
pkgs.renoise.overrideAttrs (final: prev: {
version = "3.4.4";
src = pkgs.fetchurl {
url = "https://files.renoise.com/demo/Renoise_3_4_4_Demo_Linux_${platform.archSuffix}.tar.gz";
hash = platform.hash;
};
})