Skip to content

Commit 0fd585f

Browse files
committedNov 2, 2017
puddletag: fix the due to sourceRoot changes
1 parent cf7d701 commit 0fd585f

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed
 
+13-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
{ stdenv, fetchFromGitHub, python2Packages, makeWrapper, chromaprint }:
22

3-
let
4-
pname = "puddletag";
5-
6-
in python2Packages.buildPythonApplication rec {
7-
name = "${pname}-${version}";
3+
python2Packages.buildPythonApplication rec {
4+
name = "puddletag-${version}";
85
version = "1.2.0";
96

107
src = fetchFromGitHub {
11-
owner = "keithgg";
12-
repo = pname;
13-
rev = "v${version}";
8+
owner = "keithgg";
9+
repo = "puddletag";
10+
rev = "v${version}";
1411
sha256 = "1g6wa91awy17z5b704yi9kfynnvfm9lkrvpfvwccscr1h8s3qmiz";
1512
};
1613

17-
sourceRoot = "${pname}-v${version}-src/source";
14+
sourceRoot = "source/source";
1815

1916
disabled = python2Packages.isPy3k; # work to support python 3 has not begun
2017

@@ -29,17 +26,21 @@ in python2Packages.buildPythonApplication rec {
2926
dontStrip = true; # we are not generating any binaries
3027

3128
installPhase = ''
29+
runHook preInstall
30+
3231
siteDir=$(toPythonPath $out)
3332
mkdir -p $siteDir
3433
PYTHONPATH=$PYTHONPATH:$siteDir
3534
${python2Packages.python.interpreter} setup.py install --prefix $out
35+
36+
runHook postInstall
3637
'';
3738

3839
meta = with stdenv.lib; {
39-
homepage = https://puddletag.net;
40+
homepage = https://puddletag.net;
4041
description = "An audio tag editor similar to the Windows program, Mp3tag";
41-
license = licenses.gpl3;
42-
platforms = platforms.linux;
42+
license = licenses.gpl3;
4343
maintainers = with maintainers; [ peterhoeg ];
44+
platforms = platforms.linux;
4445
};
4546
}

0 commit comments

Comments
 (0)
Please sign in to comment.