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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
706 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; [ ];
2021-01-24 00:40:18 +00:00
platforms = platforms.unix;
hydraPlatforms = [];
};
}