aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/pkgs/tiv/default.nix
blob: 2415db95556ea3427b0624958daeee1b15926537 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ fetchurl, perlPackages }:
perlPackages.buildPerlPackage rec {
  pname = "tiv";
  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"
  '';
}