puddletag: fix the due to sourceRoot changes
This commit is contained in:
parent
cf7d701108
commit
0fd585fa62
@ -1,20 +1,17 @@
|
|||||||
{ stdenv, fetchFromGitHub, python2Packages, makeWrapper, chromaprint }:
|
{ stdenv, fetchFromGitHub, python2Packages, makeWrapper, chromaprint }:
|
||||||
|
|
||||||
let
|
python2Packages.buildPythonApplication rec {
|
||||||
pname = "puddletag";
|
name = "puddletag-${version}";
|
||||||
|
|
||||||
in python2Packages.buildPythonApplication rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
version = "1.2.0";
|
version = "1.2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "keithgg";
|
owner = "keithgg";
|
||||||
repo = pname;
|
repo = "puddletag";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1g6wa91awy17z5b704yi9kfynnvfm9lkrvpfvwccscr1h8s3qmiz";
|
sha256 = "1g6wa91awy17z5b704yi9kfynnvfm9lkrvpfvwccscr1h8s3qmiz";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${pname}-v${version}-src/source";
|
sourceRoot = "source/source";
|
||||||
|
|
||||||
disabled = python2Packages.isPy3k; # work to support python 3 has not begun
|
disabled = python2Packages.isPy3k; # work to support python 3 has not begun
|
||||||
|
|
||||||
@ -29,17 +26,21 @@ in python2Packages.buildPythonApplication rec {
|
|||||||
dontStrip = true; # we are not generating any binaries
|
dontStrip = true; # we are not generating any binaries
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
siteDir=$(toPythonPath $out)
|
siteDir=$(toPythonPath $out)
|
||||||
mkdir -p $siteDir
|
mkdir -p $siteDir
|
||||||
PYTHONPATH=$PYTHONPATH:$siteDir
|
PYTHONPATH=$PYTHONPATH:$siteDir
|
||||||
${python2Packages.python.interpreter} setup.py install --prefix $out
|
${python2Packages.python.interpreter} setup.py install --prefix $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://puddletag.net;
|
homepage = https://puddletag.net;
|
||||||
description = "An audio tag editor similar to the Windows program, Mp3tag";
|
description = "An audio tag editor similar to the Windows program, Mp3tag";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user