diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-08 15:26:42 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-08 15:30:18 +0200 |
commit | ebd8573046dee7d76fab1da3859e7480b716ee03 (patch) | |
tree | d011d8fc6d8ed5bfa2daf067071385c4c0d66a4f /pkgs/tools/text/recode | |
parent | c8df88885891bdb6d1f207cf203e4b0af48d5486 (diff) |
Add a utility function "fetchGitHub"
This is a small wrapper around fetchzip. It allows you to say:
src = fetchGitHub {
owner = "NixOS";
repo = "nix";
rev = "924e19341a5ee488634bc9ce1ea9758ac496afc3"; # or a tag
sha256 = "1ld1jc26wy0smkg63chvdzsppfw6zy1ykf3mmc50hkx397wcbl09";
};
Diffstat (limited to 'pkgs/tools/text/recode')
-rw-r--r-- | pkgs/tools/text/recode/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/tools/text/recode/default.nix b/pkgs/tools/text/recode/default.nix index db9ed5d30f30..81b863a35df4 100644 --- a/pkgs/tools/text/recode/default.nix +++ b/pkgs/tools/text/recode/default.nix @@ -1,14 +1,15 @@ # XXX: this may need -liconv on non-glibc systems.. -{ stdenv, fetchgit, python, perl, autoconf, automake, libtool, intltool, flex }: +{ stdenv, fetchGitHub, python, perl, autoconf, automake, libtool, intltool, flex }: stdenv.mkDerivation rec { - name = "recode-3.7-pff85fdbd"; + name = "recode-3.7-2fd838565"; - src = fetchgit { - url = https://github.com/pinard/Recode.git; + src = fetchGitHub { + owner = "pinard"; + repo = "Recode"; rev = "2fd8385658e5a08700e3b916053f6680ff85fdbd"; - sha256 = "1xhlfmqld6af16l444jli9crj9brym2jihg1n6lkxh2gar68f5l7"; + sha256 = "06vyjqaraamcc5vka66mlvxj27ihccqc74aymv2wn8nphr2rhh03"; }; buildInputs = [ python perl autoconf automake libtool intltool flex ]; |