about summary refs log tree commit diff
path: root/pkgs/by-name/ms/mscompress/package.nix
blob: e6bc49feb187135b34ed56d499baafe0602b6deb (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
25
26
27
28
29
30
31
32
{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "mscompress";
  version = "0.4";

  src = fetchFromGitHub {
    owner = "stapelberg";
    repo = "mscompress";
    rev = finalAttrs.version;
    hash = "sha256-Urq8CzVfO9tdEUrEya+bUzoNjZQ2TO7OB+h2MTAGwEI=";
  };

  nativeBuildInputs = [ autoreconfHook ];

  enableParallelBuilding = true;

  postInstall = ''
    install -Dm444 -t $out/share/doc/mscompress ChangeLog README TODO
  '';

  meta = with lib; {
    description = ''Microsoft "compress.exe/expand.exe" compatible (de)compressor'';
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ peterhoeg ];
    platforms = platforms.all;
  };
})