depot/third_party/nixpkgs/pkgs/tools/archivers/rpmextract/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

23 lines
489 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.gpl2;
maintainers = with maintainers; [ abbradar ];
};
}