nixpkgs/pkgs/build-support/templaterpm/default.nix

26 lines
715 B
Nix
Raw Normal View History

{lib, stdenv, makeWrapper, python, toposort, rpm}:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "nix-template-rpm";
version = "0.1";
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python toposort rpm ];
2021-08-17 09:04:49 +00:00
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; [ tstrobel ];
2021-01-24 00:40:18 +00:00
platforms = platforms.unix;
hydraPlatforms = [];
};
}