git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32300 from adisbladis/vault-0_9_0

vault: 0.8.3 -> 0.9.0

commit97af9310d54312841a545efe95462274c62a5bf2 authorDaiderd Jordan <daiderd@gmail.com> dateMon 4 Dec 2017, 13:12 (9 years ago) parent3807408f019707
3 files changed+20−12
pkgs/development/tools/gox/default.nix+15−8 pkgs/development/tools/gox/deps.nix+2−2 pkgs/tools/security/vault/default.nix+3−2
pkgs/development/tools/gox/default.nix+15−8
@@ -1,18 +1,25 @@
1−{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
22
33buildGoPackage rec {
44 name = "gox-${version}";
5− version = "20140904-${stdenv.lib.strings.substring 0 7 rev}";
6− rev = "e8e6fd4fe12510cc46893dff18c5188a6a6dc549";
5+ version = "0.4.0";
76
8−
97 goPackagePath = "github.com/mitchellh/gox";
108
11− src = fetchgit {
12− inherit rev;
13− url = "https://github.com/mitchellh/gox";
14− sha256 = "14jb2vgfr6dv7zlw8i3ilmp125m5l28ljv41a66c9b8gijhm48k1";
9+ src = fetchFromGitHub {
10+ owner = "mitchellh";
11+ repo = "gox";
12+ rev = "v${version}";
13+ sha256 = "1q4fdkw904mrmh1q5z8pfd3r0gcn5dm776kldqawddy93iiwnp8r";
1514 };
1615
1716 goDeps = ./deps.nix;
17+
18+ meta = with stdenv.lib; {
19+ homepage = https://github.com/mitchellh/gox;
20+ description = "A dead simple, no frills Go cross compile tool";
21+ platforms = platforms.all;
22+ license = licenses.mpl20;
23+ };
24+
1825}
pkgs/development/tools/gox/deps.nix+2−2
@@ -4,8 +4,8 @@
44 fetch = {
55 type = "git";
66 url = "https://github.com/mitchellh/iochan";
7− rev = "b584a329b193e206025682ae6c10cdbe03b0cd77";
8− sha256 = "1fcwdhfci41ibpng2j4c1bqfng578cwzb3c00yw1lnbwwhaq9r6b";
7+ rev = "87b45ffd0e9581375c491fef3d32130bb15c5bd7";
8+ sha256 = "1435kdcx3j1xgr6mm5c7w7hjx015jb20yfqlkp93q143hspf02fx";
99 };
1010 }
1111]
pkgs/tools/security/vault/default.nix+3−2
@@ -9,13 +9,13 @@ let
99 };
1010in stdenv.mkDerivation rec {
1111 name = "vault-${version}";
12− version = "0.8.3";
12+ version = "0.9.0";
1313
1414 src = fetchFromGitHub {
1515 owner = "hashicorp";
1616 repo = "vault";
1717 rev = "v${version}";
18− sha256 = "1dcmqbcdkj42614am2invb6wf8v29z4sp4d354a4d83rwhyb0qly";
18+ sha256 = "1c3jaajf3wpjczbncvdpyy5vaa62gb9287bj2zi2khvqzvii36b0";
1919 };
2020
2121 nativeBuildInputs = [ go gox removeReferencesTo ];
@@ -23,6 +23,7 @@ in stdenv.mkDerivation rec {
2323 buildPhase = ''
2424 patchShebangs ./
2525 substituteInPlace scripts/build.sh --replace 'git rev-parse HEAD' 'echo ${src.rev}'
26+ sed -i s/'^GIT_DIRTY=.*'/'GIT_DIRTY="+NixOS"'/ scripts/build.sh
2627
2728 mkdir -p src/github.com/hashicorp
2829 ln -s $(pwd) src/github.com/hashicorp/vault