diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-12-15 18:18:18 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-12-15 18:18:18 -0500 |
commit | b066646e04548eb932e9cda76f24e357fe52becf (patch) | |
tree | 1e9e71fcb054f4c1f487af58d26c16a65b3dba1d /pkgs | |
parent | a991de49f2aa3ab8716c73f6bfba722df23a3b50 (diff) | |
download | nixlib-b066646e04548eb932e9cda76f24e357fe52becf.tar nixlib-b066646e04548eb932e9cda76f24e357fe52becf.tar.gz nixlib-b066646e04548eb932e9cda76f24e357fe52becf.tar.bz2 nixlib-b066646e04548eb932e9cda76f24e357fe52becf.tar.lz nixlib-b066646e04548eb932e9cda76f24e357fe52becf.tar.xz nixlib-b066646e04548eb932e9cda76f24e357fe52becf.tar.zst nixlib-b066646e04548eb932e9cda76f24e357fe52becf.zip |
docker-credential-helpers: init at 0.6.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/admin/docker-credential-helpers/default.nix | 49 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/admin/docker-credential-helpers/default.nix b/pkgs/tools/admin/docker-credential-helpers/default.nix new file mode 100644 index 000000000000..1f4315afc40d --- /dev/null +++ b/pkgs/tools/admin/docker-credential-helpers/default.nix @@ -0,0 +1,49 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, pkg-config, libsecret }: + +buildGoPackage rec { + pname = "docker-credential-helpers"; + version = "0.6.3"; + + goPackagePath = "github.com/docker/docker-credential-helpers"; + + src = fetchFromGitHub { + owner = "docker"; + repo = pname; + rev = "v${version}"; + sha256 = "0xgmwjva3j1s0cqkbajbamj13bgzh5jkf2ir54m9a7w8gjnsh6dx"; + }; + + nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config ]; + + buildInputs = stdenv.lib.optionals stdenv.isLinux [ libsecret ]; + + buildPhase = + if stdenv.isDarwin + then '' + cd go/src/${goPackagePath} + go build -ldflags -s -o bin/docker-credential-osxkeychain osxkeychain/cmd/main_darwin.go + '' + else '' + cd go/src/${goPackagePath} + go build -o bin/docker-credential-secretservice secretservice/cmd/main_linux.go + go build -o bin/docker-credential-pass pass/cmd/main_linux.go + ''; + + installPhase = + if stdenv.isDarwin + then '' + install -Dm755 -t $bin/bin bin/docker-credential-osxkeychain + '' + else '' + install -Dm755 -t $bin/bin bin/docker-credential-pass + install -Dm755 -t $bin/bin bin/docker-credential-secretservice + ''; + + meta = with stdenv.lib; { + description = "Suite of programs to use native stores to keep Docker credentials safe"; + homepage = "https://github.com/docker/docker-credential-helpers"; + license = licenses.mit; + maintainers = [ maintainers.marsam ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d6a72d931ec1..011ec15cf4c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18420,6 +18420,8 @@ in docker-credential-gcr = callPackage ../tools/admin/docker-credential-gcr { }; + docker-credential-helpers = callPackage ../tools/admin/docker-credential-helpers { }; + doodle = callPackage ../applications/search/doodle { }; dr14_tmeter = callPackage ../applications/audio/dr14_tmeter { }; |