depot/third_party/nixpkgs/pkgs/applications/audio/pd-plugins/zexy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 lines
896 B
Nix

{ 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";
};
buildInputs = [ autoconf automake 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 = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
};
}