about summary refs log tree commit diff
path: root/pkgs/tools/compression/zdelta/default.nix
blob: b30a43f33c13abd2e309b7203cf4429b4c00b080 (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, fetchurl }:

stdenv.mkDerivation rec {
  pname = "zdelta";
  version = "2.1";

  src = fetchurl {
    url = "https://web.archive.org/web/20160316212948/http://cis.poly.edu/zdelta/downloads/zdelta-2.1.tar.gz";
    sha256 = "sha256-WiQKWxJkINIwRBcdiuVLMDiupQ8gOsiXOEZvHDa5iFg=";
  };

  makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];

  installPhase = ''
    mkdir -p $out/bin
    cp -p zdc zdu $out/bin
  '';

  meta = with lib; {
    homepage = "https://web.archive.org/web/20160316212948/http://cis.poly.edu/zdelta/";
    platforms = platforms.all;
    license = licenses.zlib;
  };
}