nixpkgs/pkgs/by-name/li/linuxsampler/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

42 lines
1.3 KiB
Nix

{ lib, stdenv, fetchurl, autoconf, automake, bison, libtool, pkg-config, which
, alsa-lib, asio, libjack2, libgig, libsndfile, lv2 }:
stdenv.mkDerivation rec {
pname = "linuxsampler";
version = "2.3.1";
src = fetchurl {
url = "https://download.linuxsampler.org/packages/${pname}-${version}.tar.bz2";
sha256 = "sha256-T7quk5N5JBiPqIziQd0vaCr8tLDbwS6otz6egY01OTE=";
};
preConfigure = ''
make -f Makefile.svn
'';
nativeBuildInputs = [ autoconf automake bison libtool pkg-config which ];
buildInputs = [ alsa-lib asio libjack2 libgig libsndfile lv2 ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "http://www.linuxsampler.org";
description = "Sampler backend";
longDescription = ''
Includes sampler engine, audio and MIDI drivers, network layer
(LSCP) API and native C++ API.
LinuxSampler is licensed under the GNU GPL with the exception
that USAGE of the source code, libraries and applications FOR
COMMERCIAL HARDWARE OR SOFTWARE PRODUCTS IS NOT ALLOWED without
prior written permission by the LinuxSampler authors. If you
have questions on the subject, that are not yet covered by the
FAQ, please contact us.
'';
license = licenses.unfree;
maintainers = [ ];
platforms = platforms.linux;
};
}