My personal project and infrastructure archive
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.
 
 
 
 
 
 
nomicon/infra/libkookie/nixpkgs/unstable/pkgs/build-support/templaterpm/default.nix

25 lines
715 B

{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; [ tstrobel ];
platforms = platforms.unix;
hydraPlatforms = [];
};
}