mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
38 lines
773 B
Nix
38 lines
773 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "liblscp";
|
|
version = "1.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.linuxsampler.org/packages/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-ZaPfB3Veg1YCBHieoK9fFqL0tB4PiNsY81oJmn2rd/I=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# fix prefix to only appear once
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail '"''${CONFIG_PREFIX}/' '"'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.linuxsampler.org";
|
|
description = "LinuxSampler Control Protocol (LSCP) wrapper library";
|
|
license = licenses.gpl2;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|