2016-02-12 21:12:41 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libjack2, fftwFloat, gtk2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "spectrojack-${version}";
|
2018-06-19 06:26:15 +01:00
|
|
|
version = "0.4.1";
|
2016-02-12 21:12:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://sed.free.fr/spectrojack/${name}.tar.gz";
|
2018-06-19 06:26:15 +01:00
|
|
|
sha256 = "1kiwx0kag7kq7rhg0bvckfm8r7pqmbk76ppa39cq2980jb5v8rfp";
|
2016-02-12 21:12:41 +00:00
|
|
|
};
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libjack2 fftwFloat gtk2 ];
|
2016-02-12 21:12:41 +00:00
|
|
|
configurePhase= ''
|
|
|
|
sed -i 's/.*home.*/#&/' ./Makefile
|
|
|
|
substituteInPlace ./Makefile \
|
|
|
|
--replace "/usr/share" "$out/usr/share"
|
|
|
|
'';
|
|
|
|
installPhase= ''
|
|
|
|
install -Dm755 spectrojack $out/bin/spectrojack
|
|
|
|
install -Dm644 spectrojack_icon.svg $out/usr/share/spectrojack/icon.svg
|
|
|
|
install -Dm644 -t $out/usr/share/spectrojack/colormaps colormaps/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A little spectrogram/audiogram/sonogram/whatever for JACK";
|
|
|
|
homepage = http://sed.free.fr/spectrojack;
|
|
|
|
license = stdenv.lib.licenses.publicDomain;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ sleexyz ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|