diff --git a/pkgs/development/tools/exercism/default.nix b/pkgs/development/tools/exercism/default.nix deleted file mode 100644 index 9c1b3027252a..000000000000 --- a/pkgs/development/tools/exercism/default.nix +++ /dev/null @@ -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 ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3ad13b487483..0999f17fc582 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1399,8 +1399,6 @@ let execline = callPackage ../tools/misc/execline { }; - exercism = callPackage ../development/tools/exercism { }; - exif = callPackage ../tools/graphics/exif { }; exiftags = callPackage ../tools/graphics/exiftags { }; diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index d5053af2ceda..a69d361db619 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -549,6 +549,15 @@ let sha256 = "1rmm1ky7irqypqjkk6qcd2n0xkzpaggdxql9dp9i9qci5rvvwwd4"; }; + exercism = buildFromGitHub { + rev = "v2.2.1"; + name = "exercism"; + owner = "exercism"; + repo = "cli"; + sha256 = "13kwcxd7m3xv42j50nlm9dd08865dxji41glfvnb4wwq9yicyn4g"; + buildInputs = [ net cli-go osext ]; + }; + exponential-backoff = buildFromGitHub { rev = "96e25d36ae36ad09ac02cbfe653b44c4043a8e09"; owner = "odeke-em";