nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (679B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5 }:
      6 
      7 stdenv.mkDerivation {
      8   pname = "docker-reg-tool";
      9   version = "0-unstable-2023-10-26";
     10 
     11   src = fetchFromGitHub {
     12     owner = "byrnedo";
     13     repo = "docker-reg-tool";
     14     rev = "ff27e94d2cf97dfd078d37aa156ab720aa32da29";
     15     hash = "sha256-Tcdu7GwmV/kAe4yxzGFr05wC0DpAjkbUNPXG8EhBU2E=";
     16   };
     17 
     18   installPhase = ''
     19     install -Dm755 docker_reg_tool -t $out/bin
     20   '';
     21 
     22   meta = {
     23     description = "Docker registry cli tool, primarily for deleting images";
     24     homepage = "https://github.com/byrnedo/docker-reg-tool";
     25     license = lib.licenses.mit;
     26     maintainers = [ lib.maintainers.sikmir ];
     27     platforms = lib.platforms.all;
     28   };
     29 }