koji -> pythonPackages.koji

koji is both a library and an application. It is used in Nixpkgs
primarily as a library and therefore I move it.
This commit is contained in:
Frederik Rietdijk
2016-12-01 16:36:38 +01:00
parent be020a2582
commit 74276caf19
3 changed files with 7 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
{ stdenv, fetchurl, mkPythonDerivation, pycurl }:
mkPythonDerivation rec {
name = "koji-1.8";
src = fetchurl {
url = "https://fedorahosted.org/released/koji/koji-1.8.0.tar.bz2";
sha256 = "10dph209h4jgajb5jmbjhqy4z4hd22i7s2d93vm3ikdf01i8iwf1";
};
propagatedBuildInputs = [ pycurl ];
makeFlags = "DESTDIR=$(out)";
postInstall = ''
mv $out/usr/* $out/
cp -R $out/nix/store/*/* $out/
rm -rf $out/nix
'';
meta = {
maintainers = [ stdenv.lib.maintainers.mornfall ];
platforms = stdenv.lib.platforms.linux;
};
}