159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
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;
|
|
};
|
|
}
|