about summary refs log tree commit diff
path: root/pkgs/tools/archivers/rpmextract/default.nix
blob: ccb37cc5b5674eb1cbbebc02e8ce8212c4c0b43e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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.gpl2Only;
    maintainers = with maintainers; [ abbradar ];
    mainProgram = "rpmextract";
  };
}