depot/third_party/nixpkgs/pkgs/tools/archivers/rpmextract/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

24 lines
525 B
Nix

{ lib, 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 lib; {
description = "Script to extract RPM archives";
platforms = platforms.all;
license = licenses.gpl2Only;
maintainers = with maintainers; [ abbradar ];
mainProgram = "rpmextract";
};
}