blob: 3e7a56cd73fb5994008b4a8628c12887bdd9859c (
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 {
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"
'';
}
|