From 598ccfdec996a9040f8bdf2cd59f98e591a6212a Mon Sep 17 00:00:00 2001 From: Aaron Bull Schaefer Date: Tue, 6 Sep 2016 08:14:52 -0700 Subject: [PATCH] transcrypt: 0.9.7 -> 0.9.9 --- .../git-and-tools/transcrypt/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/transcrypt/default.nix b/pkgs/applications/version-management/git-and-tools/transcrypt/default.nix index 2f42705c2b86..3047ca023423 100644 --- a/pkgs/applications/version-management/git-and-tools/transcrypt/default.nix +++ b/pkgs/applications/version-management/git-and-tools/transcrypt/default.nix @@ -1,20 +1,26 @@ -{ stdenv, fetchurl, git, openssl }: +{ stdenv, fetchFromGitHub, git, makeWrapper, openssl }: stdenv.mkDerivation rec { - name = "transcrypt-0.9.7"; + name = "transcrypt-${version}"; + version = "0.9.9"; - src = fetchurl { - url = https://github.com/elasticdog/transcrypt/archive/v0.9.7.tar.gz; - sha256 = "0pgrf74wdc7whvwz7lkkq6qfk38n37dc5668baq7czgckibvjqdh"; + src = fetchFromGitHub { + owner = "elasticdog"; + repo = "transcrypt"; + rev = "v${version}"; + sha256 = "0brsgj3qmvkgxzqqamk8krwyarwff1dlb3jjd09snnbfl0kdq1a5"; }; - buildInputs = [ git openssl ]; + buildInputs = [ git makeWrapper openssl ]; installPhase = '' install -m 755 -D transcrypt $out/bin/transcrypt install -m 644 -D man/transcrypt.1 $out/share/man/man1/transcrypt.1 install -m 644 -D contrib/bash/transcrypt $out/share/bash-completion/completions/transcrypt install -m 644 -D contrib/zsh/_transcrypt $out/share/zsh/site-functions/_transcrypt + + wrapProgram $out/bin/transcrypt \ + --prefix PATH : "${stdenv.lib.makeBinPath [ git openssl ]}" ''; meta = with stdenv.lib; {