depot/third_party/nixpkgs/pkgs/applications/audio/pd-plugins/zexy/default.nix
Default email d56f44df06 Project import generated by Copybara.
GitOrigin-RevId: bc4b9eef3ce3d5a90d8693e8367c9cbfc9fc1e13
2022-04-03 20:54:34 +02:00

37 lines
908 B
Nix

{ lib, stdenv, fetchurl, autoconf, automake, puredata }:
stdenv.mkDerivation rec {
pname = "zexy";
version = "2.2.4";
src = fetchurl {
url = "https://puredata.info/downloads/zexy/releases/${version}/${pname}-${version}.tar.gz";
sha256 = "1xpgl82c2lc6zfswjsa7z10yhv5jb7a4znzh3nc7ffrzm1z8vylp";
};
nativeBuildInputs = [ autoconf automake ];
buildInputs = [ puredata ];
preBuild = ''
export LD=$CXX
cd src/
for i in ${puredata}/include/pd/*; do
ln -s $i .
done
./bootstrap.sh
./configure --enable-lpt=no --prefix=$out
'';
postInstall = ''
mv $out/lib/pd/extra/zexy $out
rm -rf $out/lib
'';
meta = {
description = "The swiss army knife for puredata";
homepage = "http://puredata.info/downloads/zexy";
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.magnetophon ];
platforms = lib.platforms.linux;
};
}