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