2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, alsa-lib, cmake, gtk2, libjack2, libgnomecanvas
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpthreadstubs, libsamplerate, libsndfile, libtool, libxml2
|
2021-01-15 22:18:51 +00:00
|
|
|
, pkg-config, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "petri-foo";
|
|
|
|
version = "0.1.87";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/petri-foo/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "0b25iicgn8c42487fdw32ycfrll1pm2zjgy5djvgw6mfcaa4gizh";
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
patches = [
|
|
|
|
# Pull patch pending upstream inclusion for -fno-common toollchain support:
|
|
|
|
# https://github.com/petri-foo/Petri-Foo/pull/43
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/petri-foo/Petri-Foo/commit/6a3256c9b619b1fed18ad15063f110e8d91aa6fe.patch";
|
|
|
|
sha256 = "05yc4g22iwnd054jmvihrl461yr0cxnghslfrbhan6bac6fcvlal";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ alsa-lib gtk2 libjack2 libgnomecanvas libpthreadstubs
|
2021-01-15 22:18:51 +00:00
|
|
|
libsamplerate libsndfile libtool libxml2 openssl ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "MIDI controllable audio sampler";
|
|
|
|
longDescription = "a fork of Specimen";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://petri-foo.sourceforge.net";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "petri-foo";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|