Skip to content

Commit

Permalink
puddletag: fix the due to sourceRoot changes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Nov 2, 2017
1 parent cf7d701 commit 0fd585f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions pkgs/applications/audio/puddletag/default.nix
@@ -1,20 +1,17 @@
{ stdenv, fetchFromGitHub, python2Packages, makeWrapper, chromaprint }:

let
pname = "puddletag";

in python2Packages.buildPythonApplication rec {
name = "${pname}-${version}";
python2Packages.buildPythonApplication rec {
name = "puddletag-${version}";
version = "1.2.0";

src = fetchFromGitHub {
owner = "keithgg";
repo = pname;
rev = "v${version}";
owner = "keithgg";
repo = "puddletag";
rev = "v${version}";
sha256 = "1g6wa91awy17z5b704yi9kfynnvfm9lkrvpfvwccscr1h8s3qmiz";
};

sourceRoot = "${pname}-v${version}-src/source";
sourceRoot = "source/source";

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

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

installPhase = ''
runHook preInstall
siteDir=$(toPythonPath $out)
mkdir -p $siteDir
PYTHONPATH=$PYTHONPATH:$siteDir
${python2Packages.python.interpreter} setup.py install --prefix $out
runHook postInstall
'';

meta = with stdenv.lib; {
homepage = https://puddletag.net;
homepage = https://puddletag.net;
description = "An audio tag editor similar to the Windows program, Mp3tag";
license = licenses.gpl3;
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.linux;
};
}

0 comments on commit 0fd585f

Please sign in to comment.