nixpkgs/pkgs/tools/archivers/rpmextract/default.nix

23 lines
474 B
Nix
Raw Normal View History

{ stdenv, rpm, cpio, substituteAll }:
2014-10-19 23:16:24 +00:00
stdenv.mkDerivation rec {
name = "rpmextract";
buildCommand = ''
2014-10-19 23:16:24 +00:00
install -Dm755 $script $out/bin/rpmextract
'';
script = substituteAll {
src = ./rpmextract.sh;
inherit rpm cpio;
inherit (stdenv) shell;
2014-10-19 23:16:24 +00:00
};
meta = with stdenv.lib; {
description = "Script to extract RPM archives";
platforms = platforms.all;
license = licenses.gpl2;
maintainers = with maintainers; [ abbradar ];
2014-10-19 23:16:24 +00:00
};
}