summary refs log tree commit diff
path: root/pkgs/tools/archivers/rpmextract/default.nix
blob: 6d5041c52d031952a0c334ff6b040c6a35fd349d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, rpm, cpio, substituteAll }:

stdenv.mkDerivation rec {
  name = "rpmextract";

  buildCommand = ''
    install -Dm755 $script $out/bin/rpmextract
  '';
    
  script = substituteAll {
    src = ./rpmextract.sh;
    inherit rpm cpio;
    inherit (stdenv) shell;
  };

  meta = with stdenv.lib; {
    description = "Script to extract RPM archives";
    platforms = platforms.all;
    license = licenses.gpl2;
    maintainers = with maintainers; [ abbradar ];
  };
}