nixpkgs-suyu/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
715 B
Nix
Raw Normal View History

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