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

22 lines
456 B
Nix
Raw Normal View History

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