From d0e40e4a6bc5b2c419cddfe677b02c3e87e7a5fe Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 4 Oct 2020 02:33:44 +0100 Subject: [PATCH] nix/pkgs: add crane --- nix/pkgs/crane.nix | 19 +++++++++++++++++++ nix/pkgs/default.nix | 1 + 2 files changed, 20 insertions(+) create mode 100644 nix/pkgs/crane.nix diff --git a/nix/pkgs/crane.nix b/nix/pkgs/crane.nix new file mode 100644 index 0000000000..4d5724edb7 --- /dev/null +++ b/nix/pkgs/crane.nix @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ pkgs, ... }: +pkgs.buildGoModule rec { + pname = "crane"; + version = "0.1.3"; + + src = pkgs.fetchFromGitHub { + owner = "google"; + repo = "go-containerregistry"; + rev = "v${version}"; + sha256 = "1mc58qxr0kvl9g2agri4bb0bj9yxb8hypyvxnspymqm1pcvfl3cn"; + }; + + vendorSha256 = null; + doCheck = false; +} diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index 7da5b9d45a..c94e392daa 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -4,6 +4,7 @@ args: { bazel-run = import ./bazel-run.nix args; + crane = import ./crane.nix args; javaws-env = import ./javaws-env.nix args; plex-pass = import ./plex-pass.nix args; secretsync = import ./secretsync args;