mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
koji: factor python module into an standalone app
This commit is contained in:
parent
33949a413c
commit
b8fca7b38c
21
pkgs/tools/package-management/koji/default.nix
Normal file
21
pkgs/tools/package-management/koji/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv, fetchurl, pythonPackages, python }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "koji-1.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fedorahosted.org/released/koji/koji-1.8.0.tar.bz2";
|
||||
sha256 = "10dph209h4jgajb5jmbjhqy4z4hd22i7s2d93vm3ikdf01i8iwf1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pythonPackages.pycurl python ];
|
||||
|
||||
makeFlags = "DESTDIR=$(out)";
|
||||
|
||||
postInstall = ''
|
||||
cp -R $out/nix/store/*/* $out/
|
||||
rm -rf $out/nix
|
||||
'';
|
||||
|
||||
meta.maintainers = [ stdenv.lib.maintainers.mornfall ];
|
||||
}
|
|
@ -9123,6 +9123,8 @@ let
|
|||
inherit (gnome) libglade;
|
||||
};
|
||||
|
||||
koji = callPackage ../tools/package-management/koji { };
|
||||
|
||||
lame = callPackage ../applications/audio/lame { };
|
||||
|
||||
larswm = callPackage ../applications/window-managers/larswm { };
|
||||
|
|
|
@ -2260,25 +2260,6 @@ rec {
|
|||
};
|
||||
};
|
||||
|
||||
# TODO: this shouldn't use a buildPythonPackage
|
||||
koji = buildPythonPackage (rec {
|
||||
name = "koji-1.8";
|
||||
meta.maintainers = [ stdenv.lib.maintainers.mornfall ];
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fedorahosted.org/released/koji/koji-1.8.0.tar.bz2";
|
||||
sha256 = "10dph209h4jgajb5jmbjhqy4z4hd22i7s2d93vm3ikdf01i8iwf1";
|
||||
};
|
||||
|
||||
configurePhase = ":";
|
||||
buildPhase = ":";
|
||||
installPhase = "make install DESTDIR=$out/ && cp -R $out/nix/store/*/* $out/ && rm -rf $out/nix";
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [ pythonPackages.pycurl ];
|
||||
|
||||
});
|
||||
|
||||
logilab_astng = buildPythonPackage rec {
|
||||
name = "logilab-astng-0.24.3";
|
||||
|
||||
|
|
Loading…
Reference in a new issue