From 9b2bff7097e47fa956e642c2f630b998ce9aef38 Mon Sep 17 00:00:00 2001 From: Stéphane Jourdois Date: Wed, 28 Oct 2015 18:51:53 +0100 Subject: t1utils: use github cache and allow build on darwin --- pkgs/tools/misc/t1utils/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/misc/t1utils/default.nix b/pkgs/tools/misc/t1utils/default.nix index c00db07ed1f4..8046cea3cc5c 100644 --- a/pkgs/tools/misc/t1utils/default.nix +++ b/pkgs/tools/misc/t1utils/default.nix @@ -1,11 +1,14 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { - name = "t1utils-1.39"; + version = "1.39"; + name = "t1utils-${version}"; - src = fetchurl { - url = "http://www.lcdf.org/type/${name}.tar.gz"; - sha256 = "1i6ln194ns2g4j5zjlj4bfzxpkfpnxvy37n9baq3hywjqkjz7bhg"; + src = fetchFromGitHub { + owner = "kohler"; + repo = "t1utils"; + rev = "v${version}"; + sha256 = "02n4dzxa8fz0dbxari7xh6cq66x3az6g55fq8ix2bfmww42s4v2r"; }; meta = with stdenv.lib; { @@ -22,7 +25,7 @@ stdenv.mkDerivation rec { # README from tarball says "BSD-like" and points to non-existing LICENSE # file... license = "Click"; # MIT with extra clause, https://github.com/kohler/t1utils/blob/master/LICENSE - platforms = platforms.linux; + platforms = platforms.all; maintainers = [ maintainers.bjornfor ]; }; } -- cgit 1.4.1