mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
9bb3fccb5b
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.
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, makeWrapper, pkg-config, MMA, libjack2, libsmf, python2Packages }:
|
|
|
|
let
|
|
inherit (python2Packages) pyGtkGlade pygtksourceview python;
|
|
in stdenv.mkDerivation rec {
|
|
version = "12.02.1";
|
|
pname = "linuxband";
|
|
|
|
src = fetchurl {
|
|
url = "http://linuxband.org/assets/sources/${pname}-${version}.tar.gz";
|
|
sha256 = "1r71h4yg775m4gax4irrvygmrsclgn503ykmc2qwjsxa42ri4n2n";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ makeWrapper MMA libjack2 libsmf python pyGtkGlade pygtksourceview ];
|
|
|
|
patchPhase = ''
|
|
sed -i 's@/usr/@${MMA}/@g' src/main/config/linuxband.rc.in
|
|
cat src/main/config/linuxband.rc.in
|
|
'';
|
|
|
|
postFixup = ''
|
|
PYTHONPATH=$pyGtkGlade/share/:pygtksourceview/share/:$PYTHONPATH
|
|
for f in $out/bin/*; do
|
|
wrapProgram $f \
|
|
--prefix PYTHONPATH : $PYTHONPATH
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
description = "A GUI front-end for MMA: Type in the chords, choose the groove and it will play an accompaniment";
|
|
homepage = "http://linuxband.org/";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|