nixpkgs/pkgs/tools/archivers/rpmextract/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
489 B
Nix
Raw Normal View History

{ 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";
buildCommand = ''
2014-10-19 23:16:24 +00:00
install -Dm755 $script $out/bin/rpmextract
'';
2014-10-19 23:16:24 +00:00
script = substituteAll {
src = ./rpmextract.sh;
isExecutable = true;
2014-10-19 23:16:24 +00:00
inherit rpm cpio;
inherit (stdenv) shell;
2014-10-19 23:16:24 +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;
maintainers = with maintainers; [ abbradar ];
2014-10-19 23:16:24 +00:00
};
}