about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/tie/default.nix
blob: 70d64af371860f6ba45495cd1144dc570db21330 (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
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "tie";
  version = "2.4";

  src = fetchurl {
    url = "http://mirrors.ctan.org/web/tie/${pname}-${version}.tar.gz";
    sha256 = "1m5952kdfffiz33p1jw0wv7dh272mmw28mpxw9v7lkb352zv4xsj";
  };

  buildPhase = ''
    ${stdenv.cc.targetPrefix}cc tie.c -o tie
  '';

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

  meta = with lib; {
    homepage = "https://www.ctan.org/tex-archive/web/tie";
    description = "Allow multiple web change files";
    mainProgram = "tie";
    platforms = platforms.all;
    maintainers = with maintainers; [ vrthra ];
    license = licenses.abstyles;
  };
}