nixpkgs/pkgs/applications/audio/gtklick/default.nix

35 lines
907 B
Nix
Raw Normal View History

2021-03-25 15:59:55 +01:00
{ lib, fetchurl, python2Packages, gettext, klick}:
2016-01-12 21:33:50 +01:00
2021-03-25 15:59:55 +01:00
python2Packages.buildPythonApplication rec {
pname = "gtklick";
2016-01-12 21:33:50 +01:00
version = "0.6.4";
src = fetchurl {
url = "http://das.nasophon.de/download/${pname}-${version}.tar.gz";
2016-01-12 21:33:50 +01:00
sha256 = "7799d884126ccc818678aed79d58057f8cf3528e9f1be771c3fa5b694d9d0137";
};
2021-03-25 15:59:55 +01:00
pythonPath = with python2Packages; [
2016-01-12 21:33:50 +01:00
pyliblo
pyGtkGlade
];
nativeBuildInputs = [ gettext ];
2016-01-12 21:33:50 +01:00
propagatedBuildInputs = [ klick ];
# wrapPythonPrograms breaks gtklick in the postFixup phase.
# To fix it, apply wrapPythonPrograms and then clean up the wrapped file.
postFixup = ''
wrapPythonPrograms
sed -i "/import sys; sys.argv\[0\] = 'gtklick'/d" $out/bin/.gtklick-wrapped
'';
meta = {
homepage = "http://das.nasophon.de/gtklick/";
2016-01-12 21:33:50 +01:00
description = "Simple metronome with an easy-to-use GTK interface";
2021-01-15 14:21:58 +01:00
license = lib.licenses.gpl2Plus;
2016-01-12 21:33:50 +01:00
};
}