nixpkgs/pkgs/by-name/ox/oxefmsynth/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

44 lines
1.1 KiB
Nix

{ stdenv, lib, fetchFromGitHub, fetchzip, libX11 }:
let
vst-sdk = stdenv.mkDerivation rec {
name = "vstsdk3610_11_06_2018_build_37";
src = fetchzip {
url = "https://web.archive.org/web/20181016150224if_/https://download.steinberg.net/sdk_downloads/${name}.zip";
sha256 = "0da16iwac590wphz2sm5afrfj42jrsnkr1bxcy93lj7a369ildkj";
};
installPhase = "cp -r . $out";
};
in stdenv.mkDerivation rec {
pname = "oxefmsynth";
version = "1.3.5";
src = fetchFromGitHub {
owner = "oxesoft";
repo = pname;
rev = "v${version}";
sha256 = "1rk71ls33a38wx8i22plsi7d89cqqxrfxknq5i4f9igsw1ipm4gn";
};
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-narrowing" ];
buildFlags = [ "VSTSDK_PATH=${vst-sdk}/VST2_SDK" ];
buildInputs = [ libX11 ];
installPhase = ''
mkdir -p $out/lib/lxvst
install -Dm644 oxevst64.so -t $out/lib/lxvst
'';
meta = with lib; {
homepage = "https://github.com/oxesoft/oxefmsynth";
description = "Open source VST 2.4 instrument plugin";
maintainers = [ maintainers.hirenashah ];
platforms = [ "x86_64-linux" ];
license = licenses.gpl3Only;
};
}