mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
22 lines
456 B
Nix
22 lines
456 B
Nix
{ stdenv, fetchurl, rpm, cpio, substituteAll }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rpmextract";
|
|
|
|
buildCommand = ''
|
|
install -Dm755 $script $out/bin/rpmextract
|
|
'';
|
|
|
|
script = substituteAll {
|
|
src = ./rpmextract.sh;
|
|
inherit rpm cpio;
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Script to extract RPM archives";
|
|
platforms = platforms.all;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|