3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/spectrojack/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

32 lines
1 KiB
Nix

{ lib, stdenv, fetchurl, pkg-config, libjack2, fftwFloat, gtk2 }:
stdenv.mkDerivation rec {
pname = "spectrojack";
version = "0.4.1";
src = fetchurl {
url = "http://sed.free.fr/spectrojack/${pname}-${version}.tar.gz";
sha256 = "1kiwx0kag7kq7rhg0bvckfm8r7pqmbk76ppa39cq2980jb5v8rfp";
};
nativeBuildInputs = [ pkg-config ];
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 = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ sleexyz ];
platforms = with lib.platforms; linux;
};
}