Merge pull request #5858 from ehmry/dir2opus

dir2opus: initial package at 0.12.1
This commit is contained in:
lethalman 2015-01-21 17:56:08 +01:00
commit 57295d8427
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ stdenv, fetchurl, python, mutagen, wrapPython, opusTools }:
let version = "0.12.1"; in
stdenv.mkDerivation rec {
name = "dir2opus-${version}";
pythonPath = [ mutagen ];
buildInputs = [ wrapPython ];
propagatedBuildInputs = [ opusTools ];
src = fetchurl {
url = "https://github.com/ehmry/dir2opus/archive/${version}.tar.gz";
name = "${name}.tar.gz";
sha256 = "1d6x3qfcj5lfmc8gzna1vrr7fl31i86ha8l4nz5987rx57fgwf0q";
};
postPatch = "sed -i -e 's|#!/usr/bin/python|#!${python}/bin/python|' dir2opus";
installPhase =
''
mkdir -p $out/bin $out/share/man/man1
cp dir2opus $out/bin
cp dir2opus.1 $out/share/man/man1
'';
postFixup = "wrapPythonPrograms";
meta = with stdenv.lib;
{ homepage = https://github.com/ehmry/dir2opus;
maintainers = [ maintainers.emery ];
license = licenses.gpl2;
};
}

View File

@ -1029,6 +1029,11 @@ let
diffutils = callPackage ../tools/text/diffutils { }; diffutils = callPackage ../tools/text/diffutils { };
dir2opus = callPackage ../tools/audio/dir2opus {
inherit (pythonPackages) mutagen python wrapPython;
inherit opusTools;
};
wgetpaste = callPackage ../tools/text/wgetpaste { }; wgetpaste = callPackage ../tools/text/wgetpaste { };
dirmngr = callPackage ../tools/security/dirmngr { }; dirmngr = callPackage ../tools/security/dirmngr { };