8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
23 lines
495 B
Nix
23 lines
495 B
Nix
{ stdenv, rpm, cpio, substituteAll }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "rpmextract";
|
|
|
|
buildCommand = ''
|
|
install -Dm755 $script $out/bin/rpmextract
|
|
'';
|
|
|
|
script = substituteAll {
|
|
src = ./rpmextract.sh;
|
|
isExecutable = true;
|
|
inherit rpm cpio;
|
|
inherit (stdenv) shell;
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Script to extract RPM archives";
|
|
platforms = platforms.all;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|