You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
715 B
26 lines
715 B
3 years ago
|
{lib, stdenv, makeWrapper, python, toposort, rpm}:
|
||
10 years ago
|
|
||
5 years ago
|
stdenv.mkDerivation {
|
||
5 years ago
|
pname = "nix-template-rpm";
|
||
10 years ago
|
version = "0.1";
|
||
|
|
||
3 years ago
|
nativeBuildInputs = [ makeWrapper ];
|
||
|
buildInputs = [ python toposort rpm ];
|
||
10 years ago
|
|
||
3 years ago
|
dontUnpack = true;
|
||
10 years ago
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
cp ${./nix-template-rpm.py} $out/bin/nix-template-rpm
|
||
|
wrapProgram $out/bin/nix-template-rpm \
|
||
|
--set PYTHONPATH "${rpm}/lib/${python.libPrefix}/site-packages":"${toposort}/lib/${python.libPrefix}/site-packages"
|
||
|
'';
|
||
|
|
||
3 years ago
|
meta = with lib; {
|
||
10 years ago
|
description = "Create templates of nix expressions from RPM .spec files";
|
||
|
maintainers = with maintainers; [ tstrobel ];
|
||
3 years ago
|
platforms = platforms.unix;
|
||
10 years ago
|
hydraPlatforms = [];
|
||
|
};
|
||
|
}
|