mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
25 lines
521 B
Nix
25 lines
521 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 ];
|
|
mainProgram = "rpmextract";
|
|
};
|
|
}
|