depot/third_party/nixpkgs/pkgs/development/libraries/liblscp/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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;
};
}