commit ef5c02d8ea384b5ecde2b990203bb7f1f48ec765
parent fd6811e8c24affe28cc7e35aa439ea67e88e192f
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Thu, 9 Jan 2020 14:43:55 +0300
Add docker-reg-tool
Diffstat:
3 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/default.nix b/default.nix
@@ -30,6 +30,9 @@ in rec {
datamaps = callPackage ./pkgs/datamaps {
inherit (sources) datamaps;
};
+ docker-reg-tool = callPackage ./pkgs/docker-reg-tool {
+ inherit (sources) docker-reg-tool;
+ };
goldendict-dark-theme =
callPackage ./pkgs/goldendict-themes/dark-theme.nix { };
gpx-layer = perlPackages.callPackage ./pkgs/gpx-layer {
diff --git a/nix/sources.json b/nix/sources.json
@@ -47,6 +47,18 @@
"url": "https://github.com/ericfischer/datamaps/archive/76e620adabbedabd6866b23b30c145b53bae751e.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
+ "docker-reg-tool": {
+ "branch": "master",
+ "description": "Docker registry cli tool, primarily for deleting images.",
+ "homepage": "https://github.com/byrnedo/docker-reg-tool",
+ "owner": "byrnedo",
+ "repo": "docker-reg-tool",
+ "rev": "c5e7ff63fa476cac1eed717d0aef238beb50c21c",
+ "sha256": "02ilwyanfgcsncnhwyy1y6l4bc6phcx610xckb7rnklkplw4c04m",
+ "type": "tarball",
+ "url": "https://github.com/byrnedo/docker-reg-tool/archive/c5e7ff63fa476cac1eed717d0aef238beb50c21c.tar.gz",
+ "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
+ },
"google-translate-for-goldendict": {
"branch": "master",
"description": "Add Google translate to GoldenDict",
diff --git a/pkgs/docker-reg-tool/default.nix b/pkgs/docker-reg-tool/default.nix
@@ -0,0 +1,19 @@
+{ stdenv, docker-reg-tool }:
+
+stdenv.mkDerivation rec {
+ pname = "docker-reg-tool";
+ version = stdenv.lib.substring 0 7 src.rev;
+ src = docker-reg-tool;
+
+ installPhase = ''
+ install -Dm755 docker_reg_tool "$out/bin/docker_reg_tool"
+ '';
+
+ meta = with stdenv.lib; {
+ description = docker-reg-tool.description;
+ homepage = docker-reg-tool.homepage;
+ license = licenses.mit;
+ maintainers = with maintainers; [ sikmir ];
+ platforms = platforms.all;
+ };
+}