summaryrefslogtreecommitdiff
path: root/pkgs/tiv/default.nix
blob: c03aabe014528b6f3d31326a2a282cff83670e91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ buildPerlPackage, fetchurl, perlPackages }:
buildPerlPackage rec {
  name = "tiv-${version}";
  version = "2015";
  src = fetchurl {
    url = "http://xyne.archlinux.ca/projects/tiv/src/tiv-${version}.tar.xz";
    sha256 = "1vq073v7z7vmcd57lhs4rf4jasji69cpjgkz4dykp94a77p1qq90";
  };

  outputs = ["out"];
  buildInputs = with perlPackages; [ PerlMagick ];
  perlPreHookScript = ./tiv_builder.sh;
  perlPreHook = ''
    source $perlPreHookScript
  '';
  installPhase = ''
    install -Dm755 tiv "$out/bin/tiv"
  '';
}