summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobin Gloster <robin@loc-com.de>2015-09-23 23:45:45 +0000
committerRobin Gloster <robin@loc-com.de>2015-09-24 08:58:43 +0000
commit2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad (patch)
treedc5e95775e39d6479fb3c4a4ccca4c8a041966b1 /pkgs
parentfd5a4f0a9c66f38105d25ff6994424c967312620 (diff)
downloadnixpkgs-2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad.tar
nixpkgs-2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad.tar.gz
nixpkgs-2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad.tar.bz2
nixpkgs-2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad.tar.lz
nixpkgs-2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad.tar.xz
nixpkgs-2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad.tar.zst
nixpkgs-2d3537fbf2ec94d9eab06ed68ce80e0c2a1af1ad.zip
racer: git-2015-05-18 -> 1.0.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/rust/racer/default.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/pkgs/development/tools/rust/racer/default.nix b/pkgs/development/tools/rust/racer/default.nix
index 0b614f4edc6..463f57f5e75 100644
--- a/pkgs/development/tools/rust/racer/default.nix
+++ b/pkgs/development/tools/rust/racer/default.nix
@@ -1,17 +1,18 @@
-{stdenv, fetchgit, rustPlatform, makeWrapper }:
+{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
 
 with rustPlatform;
 
 buildRustPackage rec {
-  #TODO add emacs support
-  name = "racer-git-2015-05-18";
-  src = fetchgit {
-    url = https://github.com/phildawes/racer;
-    rev = "c2d31ed49baa11f06ffc0c7bc8f95dd00037d035";
-    sha256 = "0g420cbqpknhl61a4mpk3bbia8agf657d9vzzcqr338lmni80qz7";
+  name = "racer-${version}";
+  version = "1.0.0";
+  src = fetchFromGitHub {
+    owner = "phildawes";
+    repo = "racer";
+    rev = "v${version}";
+    sha256 = "1b6829nqx0sqw1akcid61izw8mah1dfx2nxldkmmg4scnydhvw1l";
   };
 
-  depsSha256 = "0s951apqcr96lvc1jamk6qw3631gwnlnfgcx55vlznfm7shnmywn";
+  depsSha256 = "1hfqr1kidl77lq3djbhfn37whvv6k0hg9g5gcnl6pgl6kn669hdc";
 
   buildInputs = [ makeWrapper ];
 
@@ -24,13 +25,13 @@ buildRustPackage rec {
     cp -p target/release/racer $out/bin/
     wrapProgram $out/bin/racer --set RUST_SRC_PATH "${rustc.src}/src"
     install -d $out/share/emacs/site-lisp
-    install "editors/"*.el $out/share/emacs/site-lisp
+    install "editors/emacs/"*.el $out/share/emacs/site-lisp
   '';
 
   meta = with stdenv.lib; {
     description = "A utility intended to provide Rust code completion for editors and IDEs";
     homepage = https://github.com/phildawes/racer;
     license = stdenv.lib.licenses.mit;
-    maintainers = [ maintainers.jagajaga ];
+    maintainers = with maintainers; [ jagajaga globin ];
   };
 }