mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
571c71e6f7
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.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub , boost, cairomm, cmake, libsndfile, lv2, ntk, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sorcer";
|
|
version = "1.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openAVproductions";
|
|
repo = "openAV-Sorcer";
|
|
rev = "release-${version}";
|
|
sha256 = "1x7pi77nal10717l02qpnhrx6d7w5nqrljkn9zx5w7gpb8fpb3vp";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ boost cairomm libsndfile lv2 ntk ];
|
|
|
|
postPatch = ''
|
|
# Fix build with lv2 1.18: https://github.com/brummer10/guitarix/commit/c0334c72
|
|
find . -type f -exec fgrep -q LV2UI_Descriptor {} \; \
|
|
-exec sed -i {} -e 's/const struct _\?LV2UI_Descriptor/const LV2UI_Descriptor/' \;
|
|
'';
|
|
|
|
installPhase = ''
|
|
make install
|
|
cp -a ../presets/* "$out/lib/lv2"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
|
|
homepage = "http://openavproductions.com/sorcer/";
|
|
description = "Wavetable LV2 plugin synth, targeted at the electronic / dubstep genre";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.magnetophon ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|