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
|
|
|
|
'';
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "rpmextract";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|