2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libXmu, libXt, libX11, libXext, libXxf86vm, libjack2
|
2015-02-15 13:57:16 +00:00
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-01-15 13:21:58 +00:00
|
|
|
rpath = lib.makeLibraryPath
|
2017-07-25 16:54:24 +01:00
|
|
|
[ libXmu libXt libX11 libXext libXxf86vm libjack2 ];
|
2015-02-15 13:57:16 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "baudline";
|
2015-02-15 13:57:16 +00:00
|
|
|
version = "1.08";
|
|
|
|
|
|
|
|
src =
|
2018-08-20 20:11:29 +01:00
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
2015-02-15 13:57:16 +00:00
|
|
|
fetchurl {
|
|
|
|
url = "http://www.baudline.com/baudline_${version}_linux_x86_64.tar.gz";
|
|
|
|
sha256 = "09fn0046i69in1jpizkzbaq5ggij0mpflcsparyskm3wh71mbzvr";
|
|
|
|
}
|
2018-08-20 20:11:29 +01:00
|
|
|
else if stdenv.hostPlatform.system == "i686-linux" then
|
2015-02-15 13:57:16 +00:00
|
|
|
fetchurl {
|
|
|
|
url = "http://www.baudline.com/baudline_${version}_linux_i686.tar.gz";
|
|
|
|
sha256 = "1waip5pmcf5ffcfvn8lf1rvsaq2ab66imrbfqs777scz7k8fhhjb";
|
|
|
|
}
|
|
|
|
else
|
2018-08-20 20:11:29 +01:00
|
|
|
throw "baudline isn't supported (yet?) on ${stdenv.hostPlatform.system}";
|
2015-02-15 13:57:16 +00:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
# Prebuilt binary distribution.
|
|
|
|
# "patchelf --set-rpath" seems to break the application (cannot start), using
|
|
|
|
# LD_LIBRARY_PATH wrapper script instead.
|
2016-05-04 11:08:35 +01:00
|
|
|
dontBuild = true;
|
2015-02-15 13:57:16 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/libexec/baudline"
|
|
|
|
|
|
|
|
cp -r . "$out/libexec/baudline/"
|
|
|
|
|
2016-01-24 07:29:16 +00:00
|
|
|
interpreter="$(echo ${stdenv.glibc.out}/lib/ld-linux*)"
|
2015-02-15 13:57:16 +00:00
|
|
|
for prog in "$out"/libexec/baudline/baudline*; do
|
|
|
|
patchelf --interpreter "$interpreter" "$prog"
|
|
|
|
ln -sr "$prog" "$out/bin/"
|
|
|
|
done
|
|
|
|
for prog in "$out"/bin/*; do
|
|
|
|
wrapProgram "$prog" --prefix LD_LIBRARY_PATH : ${rpath}
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-02-15 13:57:16 +00:00
|
|
|
description = "Scientific signal analysis application";
|
|
|
|
longDescription = ''
|
|
|
|
Baudline is a time-frequency browser designed for scientific
|
|
|
|
visualization of the spectral domain. Signal analysis is performed by
|
|
|
|
Fourier, correlation, and raster transforms that create colorful
|
|
|
|
spectrograms with vibrant detail. Conduct test and measurement
|
|
|
|
experiments with the built in function generator, or play back audio
|
|
|
|
files with a multitude of effects and filters. The baudline signal
|
|
|
|
analyzer combines fast digital signal processing, versatile high speed
|
|
|
|
displays, and continuous capture tools for hunting down and studying
|
|
|
|
elusive signal characteristics.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.baudline.com/";
|
2015-02-15 13:57:16 +00:00
|
|
|
# See http://www.baudline.com/faq.html#licensing_terms.
|
|
|
|
# (Do NOT (re)distribute on hydra.)
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|