exercism: migrate to go-packages, 1.9.2 -> 2.2.1

This commit is contained in:
William Roe 2015-11-09 01:13:28 +00:00
parent 6fa6ff9e25
commit 3c8f2fc9a7
3 changed files with 9 additions and 49 deletions

View File

@ -1,47 +0,0 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "exercism-${version}";
version = "1.9.2";
src =
if stdenv.system == "x86_64-darwin" then
fetchurl {
url = "https://github.com/exercism/cli/releases/download/v${version}/exercism-mac-64bit.tgz";
sha256 = "01ddwblq1kqxhjv8mp8r1zy6p78p6pysf1mbsyjxw1y8skfdapnp";
}
else if stdenv.system == "i686-darwin" then
fetchurl {
url = "https://github.com/exercism/cli/releases/download/v${version}/exercism-mac-32bit.tgz";
sha256 = "0nkpnvbyi3c3dkw3149jiwil06x997wml844i9m0d6q1wblk0qdd";
}
else if stdenv.system == "i686-linux" then
fetchurl {
url = "https://github.com/exercism/cli/releases/download/v${version}/exercism-linux-32bit.tgz";
sha256 = "0szrn28sb0w88j0kbras10wm76rsndg9j4328p01f60rabq9q3z6";
}
else if stdenv.system == "x86_64-linux" then
fetchurl {
url = "https://github.com/exercism/cli/releases/download/v${version}/exercism-linux-64bit.tgz";
sha256 = "17iah373ssd9313irmw27jq1a2gpxf8w3chjmgcgiarqfpyny5bz";
}
else throw "Platform: ${stdenv.system} not supported!";
buildPhase = "";
setSourceRoot = "sourceRoot=./";
installPhase = ''
mkdir -p $out/bin
cp -a exercism $out/bin
'';
meta = {
description = "A Go based command line tool for exercism.io";
homepage = http://exercism.io;
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.wjlroe ];
};
}

View File

@ -1399,8 +1399,6 @@ let
execline = callPackage ../tools/misc/execline { }; execline = callPackage ../tools/misc/execline { };
exercism = callPackage ../development/tools/exercism { };
exif = callPackage ../tools/graphics/exif { }; exif = callPackage ../tools/graphics/exif { };
exiftags = callPackage ../tools/graphics/exiftags { }; exiftags = callPackage ../tools/graphics/exiftags { };

View File

@ -549,6 +549,15 @@ let
sha256 = "1rmm1ky7irqypqjkk6qcd2n0xkzpaggdxql9dp9i9qci5rvvwwd4"; sha256 = "1rmm1ky7irqypqjkk6qcd2n0xkzpaggdxql9dp9i9qci5rvvwwd4";
}; };
exercism = buildFromGitHub {
rev = "v2.2.1";
name = "exercism";
owner = "exercism";
repo = "cli";
sha256 = "13kwcxd7m3xv42j50nlm9dd08865dxji41glfvnb4wwq9yicyn4g";
buildInputs = [ net cli-go osext ];
};
exponential-backoff = buildFromGitHub { exponential-backoff = buildFromGitHub {
rev = "96e25d36ae36ad09ac02cbfe653b44c4043a8e09"; rev = "96e25d36ae36ad09ac02cbfe653b44c4043a8e09";
owner = "odeke-em"; owner = "odeke-em";