about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2016-12-24 23:14:58 +0100
committerGitHub <noreply@github.com>2016-12-24 23:14:58 +0100
commit481569e58066bd440cfc03360be1959e6af9f70a (patch)
treea9d84dc8a3fd5c328035b5ece6850dde5715ea30 /pkgs/development/tools
parentbdc880e49df1515c92c2c9f4f2600d57ad7d686b (diff)
parent6db2c983c1d7b2fb994c18b91ce9ed381d4053f4 (diff)
downloadnixlib-481569e58066bd440cfc03360be1959e6af9f70a.tar
nixlib-481569e58066bd440cfc03360be1959e6af9f70a.tar.gz
nixlib-481569e58066bd440cfc03360be1959e6af9f70a.tar.bz2
nixlib-481569e58066bd440cfc03360be1959e6af9f70a.tar.lz
nixlib-481569e58066bd440cfc03360be1959e6af9f70a.tar.xz
nixlib-481569e58066bd440cfc03360be1959e6af9f70a.tar.zst
nixlib-481569e58066bd440cfc03360be1959e6af9f70a.zip
Merge pull request #21339 from sifmelcara/add/crystal-lang
crystal: init at 0.20.3
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/build-managers/shards/default.nix28
1 files changed, 28 insertions, 0 deletions
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" ];
+  };
+}