3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/templaterpm/default.nix
ajs124 45ec5898cb maintainers: remove tstrobel
was ts468 on github afaict and was actually a committer, but that account hasn't been active since early 2018
2022-06-29 00:54:53 +02:00

26 lines
706 B
Nix

{lib, stdenv, makeWrapper, python, toposort, rpm}:
stdenv.mkDerivation {
pname = "nix-template-rpm";
version = "0.1";
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python toposort rpm ];
dontUnpack = true;
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"
'';
meta = with lib; {
description = "Create templates of nix expressions from RPM .spec files";
maintainers = with maintainers; [ ];
platforms = platforms.unix;
hydraPlatforms = [];
};
}