mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +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.
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, alsa-lib
|
|
, freetype
|
|
, libjack2
|
|
, lv2
|
|
, libX11
|
|
, libXcursor
|
|
, libXext
|
|
, libXinerama
|
|
, libXrandr
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "surge-XT";
|
|
version = "1.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "surge-synthesizer";
|
|
repo = "surge";
|
|
rev = "release_xt_${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-4b0H3ZioiXFc4KCeQReobwQZJBl6Ep2/8JlRIwvq/hQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
freetype
|
|
libjack2
|
|
lv2
|
|
libX11
|
|
libXcursor
|
|
libXext
|
|
libXinerama
|
|
libXrandr
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
cmakeFlags = [
|
|
"-DSURGE_BUILD_LV2=TRUE"
|
|
];
|
|
|
|
CXXFLAGS = [
|
|
# GCC 13: error: 'uint32_t' has not been declared
|
|
"-include cstdint"
|
|
];
|
|
|
|
# JUCE dlopen's these at runtime, crashes without them
|
|
NIX_LDFLAGS = (toString [
|
|
"-lX11"
|
|
"-lXext"
|
|
"-lXcursor"
|
|
"-lXinerama"
|
|
"-lXrandr"
|
|
]);
|
|
|
|
# see https://github.com/NixOS/nixpkgs/pull/149487#issuecomment-991747333
|
|
postPatch = ''
|
|
export XDG_DOCUMENTS_DIR=$(mktemp -d)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "LV2 & VST3 synthesizer plug-in (previously released as Vember Audio Surge)";
|
|
homepage = "https://surge-synthesizer.github.io";
|
|
license = licenses.gpl3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ magnetophon orivej ];
|
|
};
|
|
}
|