2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, rpm, cpio, substituteAll }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "rpmextract";
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
install -Dm755 $script $out/bin/rpmextract
|
|
|
|
'';
|
|
|
|
|
|
|
|
script = substituteAll {
|
|
|
|
src = ./rpmextract.sh;
|
|
|
|
isExecutable = true;
|
|
|
|
inherit rpm cpio;
|
|
|
|
inherit (stdenv) shell;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Script to extract RPM archives";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|