From 47282a0ee64630695d7f89051e9aed374a1acebf Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Fri, 12 Feb 2016 16:12:41 -0500 Subject: [PATCH] spectrojack: init at 0.4 spectrojack - moved in all-packages spectrojack: init at 0.4 updated spectrojack: init at 0.4 --- lib/maintainers.nix | 1 + .../audio/spectrojack/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 pkgs/applications/audio/spectrojack/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index f73312db99e..59a7c0349b2 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -286,6 +286,7 @@ sjmackenzie = "Stewart Mackenzie "; sjourdois = "Stéphane ‘kwisatz’ Jourdois "; skeidel = "Sven Keidel "; + sleexyz = "Sean Lee "; smironov = "Sergey Mironov "; spacefrogg = "Michael Raitza "; spencerjanssen = "Spencer Janssen "; diff --git a/pkgs/applications/audio/spectrojack/default.nix b/pkgs/applications/audio/spectrojack/default.nix new file mode 100644 index 00000000000..83848671a3e --- /dev/null +++ b/pkgs/applications/audio/spectrojack/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, pkgconfig, libjack2, fftwFloat, gtk2 }: + +stdenv.mkDerivation rec { + name = "spectrojack-${version}"; + version = "0.4"; + + src = fetchurl { + url = "http://sed.free.fr/spectrojack/${name}.tar.gz"; + sha256 = "0p5aa55hnazv5djw0431mza068h7mjkb9pnglxfpqkx5z0czisdx"; + }; + buildInputs = [ pkgconfig 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 92fd1d49a66..ca4eb5e7b0c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15568,6 +15568,8 @@ let refind = callPackage ../tools/bootloaders/refind { }; + spectrojack = callPackage ../applications/audio/spectrojack { }; + xlockmore = callPackage ../misc/screensavers/xlockmore { }; xtrlock-pam = callPackage ../misc/screensavers/xtrlock-pam { };