A nix flake that installs Pianoteq7 on nixos. The license key and binary are still required and have to be acquired manually from https://www.modartt.com/.
Right now, I am really new to NixOS and Nix so this might be an awkward way of installing a package. I might try to enhance this in the future and maybe even put it in the NUR.
- Download the
pianoteq_linux_v754.7z
file from https://www.modartt.com/ - Put
pianoteq_linux_v754.7z
into the nix store
nix-store --add-fixed sha256 ./pianoteq_linux_v754.7z
- In your main flake.nix file add the following line to your inputs
inputs = {
#...
pianoteq.url = "github:qhga/nix-pianoteq7";
#...
};
- Use the following in order to install the package
environment.systemPackages = [
#...
pianoteq.packages.x86_64-linux.default
#...
];
- Download the new release from https://www.modartt.com/
- Get the new sha256 hash in sri format
nix hash to-sri --type sha256 `sha256sum pianoteq_linux_$NEW_VERSION.7z`
- Change the version numbers in the flake.nix file and adjust the sha256 hash
src = requireFile {
name = "pianoteq_linux_$NEW_VERSION.7z";
message = "Download the file from: https://www.modartt.com/download?file=pianoteq_linux_v754.7z and add it to the nix store manually: nix-store --add-fixed sha256 ./pianoteq_linux_v754.7z";
sha256 = "$NEW_HASH";
};
- Put the new release 7z into the nix store
nix-store --add-fixed sha256 ./pianoteq_linux_$NEW_VERSION.7z