mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
24 lines
496 B
Nix
24 lines
496 B
Nix
|
{ stdenv, fetchurl, rpm, cpio, substituteAll }:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "rpmextract";
|
||
|
|
||
|
builder = builtins.toFile "builder.sh" ''
|
||
|
source $stdenv/setup
|
||
|
|
||
|
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 = maintainers.abbradar;
|
||
|
};
|
||
|
}
|