blob: fae8d3e4b6057624f5e64074212b7a502a6dc7d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ stdenv, fetchurl, pythonPackages, gettext, klick}:
pythonPackages.buildPythonApplication rec {
name = "gtklick-${version}";
namePrefix = "";
version = "0.6.4";
src = fetchurl {
url = "http://das.nasophon.de/download/${name}.tar.gz";
sha256 = "7799d884126ccc818678aed79d58057f8cf3528e9f1be771c3fa5b694d9d0137";
};
pythonPath = with pythonPackages; [
pyliblo
pyGtkGlade
];
buildInputs = [ gettext ];
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/;
description = "Simple metronome with an easy-to-use GTK interface";
license = stdenv.lib.licenses.gpl2Plus;
};
}
|