Unverified Commit 58b8967a authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

lsr: init at 0.2.0; maintainers: add ddogfoodd (#405312)

parents fd3e8568 10daba1c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5852,6 +5852,11 @@
    githubId = 39909293;
    name = "Dominic Delabruere";
  };
  ddogfoodd = {
    github = "ddogfoodd";
    githubId = 58050402;
    name = "Jost Alemann";
  };
  dduan = {
    email = "daniel@duan.ca";
    github = "dduan";
+42 −0
Original line number Diff line number Diff line
# generated by zon2nix (https://github.com/nix-community/zon2nix)

{
  linkFarm,
  fetchzip,
  fetchgit,
}:

linkFarm "zig-packages" [
  {
    name = "ourio-0.0.0-_s-z0asOAgAhpi7gSpLLvWGj_4XURez4W9TWN6SGs5BP";
    path = fetchgit {
      url = "https://github.com/rockorager/ourio";
      rev = "54c1a1ed8d0994636770e5185ecdb59fe6d8535e";
      hash = "sha256-WnNfO51t3Qc5LmeDOB6MVrsaUWR41mGuwbO5t5sCtwE=";
    };
  }
  {
    name = "tls-0.1.0-ER2e0pU3BQB-UD2_s90uvppceH_h4KZxtHCrCct8L054";
    path = fetchgit {
      url = "https://github.com/ianic/tls.zig";
      rev = "8250aa9184fbad99983b32411bbe1a5d2fd6f4b7";
      hash = "sha256-EDK4L/K58V7sepDphjdxkJSGw9yQktuk8wd76c473wY=";
    };
  }
  {
    name = "zeit-0.6.0-5I6bk1J1AgA13rteb6E0steXiOUKBYTzJZMMIuK9oEmb";
    path = fetchgit {
      url = "https://github.com/rockorager/zeit";
      rev = "4496d1c40b2223c22a1341e175fc2ecd94cc0de9";
      hash = "sha256-To+8CLfKhRBgYnnlBKM+TD041wJ+jBpRZGFrghHaxTk=";
    };
  }
  {
    name = "zzdoc-0.0.0-tzT1PuPZAACr1jIJxjTrdOsLbfXS6idWFGfTq0gwxJiv";
    path = fetchgit {
      url = "https://github.com/rockorager/zzdoc";
      rev = "57e86eb4e621bc4a96fbe0dd89ad0986db6d0483";
      hash = "sha256-PAGgJCA/B3eSarTNbXB6ENwHNPiHq+wX/n6Rh2s8Pvk=";
    };
  }
]
+51 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  installShellFiles,
  fetchgit,
  zig_0_14,
  callPackage,
  versionCheckHook,
}:

let
  zig = zig_0_14;
in
stdenv.mkDerivation (finalAttrs: {
  pname = "lsr";
  version = "0.2.0";

  src = fetchgit {
    url = "https://tangled.sh/@rockorager.dev/lsr";
    rev = "v${finalAttrs.version}";
    sparseCheckout = [
      "src"
      "docs"
    ];
    hash = "sha256-+5VHY02AHFtV405OGk5PR/2tl/3qDQHDrOUghZbx5ks=";
  };

  postPatch = ''
    ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
  '';

  nativeBuildInputs = [
    installShellFiles
    zig.hook
  ];

  doInstallCheck = true;

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";

  meta = {
    homepage = "https://tangled.sh/@rockorager.dev/lsr";
    description = "ls but with io_uring";
    changelog = "https://tangled.sh/@rockorager.dev/lsr/tags";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ddogfoodd ];
    platforms = lib.platforms.linux;
    mainProgram = "lsr";
  };
})