tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge pull request #10004 from obadz/pithos
Pithos
Domen Kožar
10 years ago
d11f662c
48200a96
+16
-21
1 changed file
expand all
collapse all
unified
split
pkgs
applications
audio
pithos
default.nix
+16
-21
pkgs/applications/audio/pithos/default.nix
reviewed
···
1
1
-
# Based on Richard Wallace's post here: http://comments.gmane.org/gmane.linux.distributions.nixos/14734
1
1
+
{ fetchFromGitHub, stdenv, pythonPackages, gtk3, gobjectIntrospection, libnotify, gst_all_1 }:
2
2
3
3
-
{ fetchurl, stdenv, pythonPackages, gtk3, libnotify, gst_all_1 }:
4
3
pythonPackages.buildPythonPackage rec {
5
4
name = "pithos-${version}";
6
6
-
version = "1.0.1";
5
5
+
version = "1.1.1";
7
6
8
8
-
src = fetchurl {
9
9
-
url = "https://github.com/pithos/pithos/archive/${version}.tar.gz";
10
10
-
sha256 = "67b83927d5111067aefbf034d23880f96b1a2d300464e8491efa80e97e67f50f";
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "pithos";
9
9
+
repo = "pithos";
10
10
+
rev = version;
11
11
+
sha256 = "0373z7g1wd3g1xl8m4ipx5n2ka67a2wcn387nyk8yvgdikm14jm3";
11
12
};
12
13
13
14
postPatch = ''
14
15
substituteInPlace setup.py --replace "/usr/share" "$out/share"
15
16
'';
16
17
17
17
-
buildInputs = with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad libnotify ];
18
18
-
19
19
-
pythonPath = with pythonPackages; [ pygobject3 dbus pylast ];
20
20
-
21
21
-
propogatedBuildInputs = pythonPath;
18
18
+
propagatedBuildInputs =
19
19
+
[ gtk3 gobjectIntrospection libnotify ] ++
20
20
+
(with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
21
21
+
(with pythonPackages; [ pygobject3 pylast ]);
22
22
23
23
postInstall = ''
24
24
-
wrapProgram "$out/bin/pithos" --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0"
24
24
+
wrapProgram "$out/bin/pithos" \
25
25
+
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
26
26
+
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
25
27
'';
26
28
27
29
meta = with stdenv.lib; {
28
28
-
description = "Pandora player";
29
29
-
30
30
-
longDescription = ''
31
31
-
Pandora Internet Radio player for GNOME
32
32
-
'';
33
33
-
34
34
-
homepage = http://pithos.github.io/ ;
35
35
-
30
30
+
description = "Pandora Internet Radio player for GNOME";
31
31
+
homepage = http://pithos.github.io/;
36
32
license = licenses.gpl3;
37
37
-
38
33
maintainers = with maintainers; [ obadz ];
39
34
};
40
35
}