mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
21a7a98fa6
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/spectrojack/versions. These checks were done: - built on NixOS - /nix/store/vc60bssjlz3xpkd8mv3pvq6ymnida0d3-spectrojack-0.4.1/bin/spectrojack passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 0.4.1 with grep in /nix/store/vc60bssjlz3xpkd8mv3pvq6ymnida0d3-spectrojack-0.4.1 - directory tree listing: https://gist.github.com/edadad9b5269d1184d20fd2bc9796eb7 - du listing: https://gist.github.com/481859872810a39dd7668a81c4162d6e
32 lines
1 KiB
Nix
32 lines
1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, libjack2, fftwFloat, gtk2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "spectrojack-${version}";
|
|
version = "0.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://sed.free.fr/spectrojack/${name}.tar.gz";
|
|
sha256 = "1kiwx0kag7kq7rhg0bvckfm8r7pqmbk76ppa39cq2980jb5v8rfp";
|
|
};
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libjack2 fftwFloat gtk2 ];
|
|
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;
|
|
};
|
|
}
|