Skip to content

Commit

Permalink
Merge pull request NixOS#330108 from Sigmanificient/liblscp
Browse files Browse the repository at this point in the history
liblscp: 0.9.4 -> 1.0.0
  • Loading branch information
pbsds authored Aug 3, 2024
2 parents 49d34f4 + e632d19 commit 44e07f2
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions pkgs/development/libraries/liblscp/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
{ lib, stdenv, fetchurl, autoconf, automake, libtool, pkg-config }:
{
lib,
stdenv,
fetchurl,
cmake,
pkg-config,
}:

stdenv.mkDerivation rec {
pname = "liblscp";
version = "0.9.4";
version = "1.0.0";

src = fetchurl {
url = "https://download.linuxsampler.org/packages/${pname}-${version}.tar.gz";
sha256 = "sha256-8+3qHgIv32wfNHHggXID1W8M7pTqji4bHNGob3DTkho=";
sha256 = "sha256-ZaPfB3Veg1YCBHieoK9fFqL0tB4PiNsY81oJmn2rd/I=";
};

nativeBuildInputs = [ autoconf automake libtool pkg-config ];
postPatch = ''
# fix prefix to only appear once
substituteInPlace CMakeLists.txt \
--replace-fail '"''${CONFIG_PREFIX}/' '"'
'';

preConfigure = "make -f Makefile.git";
nativeBuildInputs = [
cmake
pkg-config
];

enableParallelBuilding = true;

Expand Down

0 comments on commit 44e07f2

Please sign in to comment.