From 6db2c983c1d7b2fb994c18b91ce9ed381d4053f4 Mon Sep 17 00:00:00 2001 From: mingchuan Date: Wed, 21 Dec 2016 16:23:01 +0800 Subject: [PATCH] shards: init at 0.7.1 Dependency manager for the Crystal language --- .../tools/build-managers/shards/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/tools/build-managers/shards/default.nix diff --git a/pkgs/development/tools/build-managers/shards/default.nix b/pkgs/development/tools/build-managers/shards/default.nix new file mode 100644 index 000000000000..7db0d89e8b1f --- /dev/null +++ b/pkgs/development/tools/build-managers/shards/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, crystal, libyaml, which }: + +stdenv.mkDerivation rec { + name = "shards-${version}"; + version = "0.7.1"; + + src = fetchurl { + url = "https://github.com/crystal-lang/shards/archive/v${version}.tar.gz"; + sha256 = "31de819c66518479682ec781a39ef42c157a1a8e6e865544194534e2567cb110"; + }; + + buildInputs = [ crystal libyaml which ]; + + buildFlags = [ "CRFLAGS=" "release" ]; + + installPhase = '' + mkdir -p $out/bin + cp bin/shards $out/bin/ + ''; + + meta = with stdenv.lib; { + homepage = "https://crystal-lang.org/"; + license = licenses.asl20; + description = "Dependency manager for the Crystal language"; + maintainers = with maintainers; [ mingchuan ]; + platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b619add3133..932013bcf293 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6495,6 +6495,8 @@ in sbt = callPackage ../development/tools/build-managers/sbt { }; simpleBuildTool = sbt; + shards = callPackage ../development/tools/build-managers/shards { }; + shellcheck = self.haskellPackages.ShellCheck; shncpd = callPackage ../tools/networking/shncpd { };