2021-01-19 09:50:56 +03:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libjack2, fftwFloat, gtk2 }:
|
2016-02-13 00:12:41 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "spectrojack";
|
2018-06-19 08:26:15 +03:00
|
|
|
version = "0.4.1";
|
2016-02-13 00:12:41 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "http://sed.free.fr/spectrojack/${pname}-${version}.tar.gz";
|
2018-06-19 08:26:15 +03:00
|
|
|
sha256 = "1kiwx0kag7kq7rhg0bvckfm8r7pqmbk76ppa39cq2980jb5v8rfp";
|
2016-02-13 00:12:41 +03:00
|
|
|
};
|
2021-01-19 09:50:56 +03:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-06 00:26:13 +03:00
|
|
|
buildInputs = [ libjack2 fftwFloat gtk2 ];
|
2016-02-13 00:12:41 +03: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";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "http://sed.free.fr/spectrojack";
|
2021-01-15 16:21:58 +03:00
|
|
|
license = lib.licenses.publicDomain;
|
|
|
|
maintainers = with lib.maintainers; [ sleexyz ];
|
|
|
|
platforms = with lib.platforms; linux;
|
2016-02-13 00:12:41 +03:00
|
|
|
};
|
|
|
|
}
|