2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, rpm, cpio, substituteAll }:
|
2014-10-19 23:16:24 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-10-19 23:16:24 +00:00
|
|
|
name = "rpmextract";
|
|
|
|
|
2014-10-22 12:13:26 +00:00
|
|
|
buildCommand = ''
|
2014-10-19 23:16:24 +00:00
|
|
|
install -Dm755 $script $out/bin/rpmextract
|
|
|
|
'';
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2014-10-19 23:16:24 +00:00
|
|
|
script = substituteAll {
|
|
|
|
src = ./rpmextract.sh;
|
2019-03-05 23:10:34 +00:00
|
|
|
isExecutable = true;
|
2014-10-19 23:16:24 +00:00
|
|
|
inherit rpm cpio;
|
2019-01-15 22:41:31 +00:00
|
|
|
inherit (stdenv) shell;
|
2014-10-19 23:16:24 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-10-19 23:16:24 +00:00
|
|
|
description = "Script to extract RPM archives";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2;
|
2015-05-14 17:09:10 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-10-19 23:16:24 +00:00
|
|
|
};
|
|
|
|
}
|