Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

lsr: init at 0.2.0

init lsr
https://tangled.sh/@rockorager.dev/lsr
efficient and fast ls alternative

+93
+42
pkgs/by-name/ls/lsr/deps.nix
··· 1 + # generated by zon2nix (https://github.com/nix-community/zon2nix) 2 + 3 + { 4 + linkFarm, 5 + fetchzip, 6 + fetchgit, 7 + }: 8 + 9 + linkFarm "zig-packages" [ 10 + { 11 + name = "ourio-0.0.0-_s-z0asOAgAhpi7gSpLLvWGj_4XURez4W9TWN6SGs5BP"; 12 + path = fetchgit { 13 + url = "https://github.com/rockorager/ourio"; 14 + rev = "54c1a1ed8d0994636770e5185ecdb59fe6d8535e"; 15 + hash = "sha256-WnNfO51t3Qc5LmeDOB6MVrsaUWR41mGuwbO5t5sCtwE="; 16 + }; 17 + } 18 + { 19 + name = "tls-0.1.0-ER2e0pU3BQB-UD2_s90uvppceH_h4KZxtHCrCct8L054"; 20 + path = fetchgit { 21 + url = "https://github.com/ianic/tls.zig"; 22 + rev = "8250aa9184fbad99983b32411bbe1a5d2fd6f4b7"; 23 + hash = "sha256-EDK4L/K58V7sepDphjdxkJSGw9yQktuk8wd76c473wY="; 24 + }; 25 + } 26 + { 27 + name = "zeit-0.6.0-5I6bk1J1AgA13rteb6E0steXiOUKBYTzJZMMIuK9oEmb"; 28 + path = fetchgit { 29 + url = "https://github.com/rockorager/zeit"; 30 + rev = "4496d1c40b2223c22a1341e175fc2ecd94cc0de9"; 31 + hash = "sha256-To+8CLfKhRBgYnnlBKM+TD041wJ+jBpRZGFrghHaxTk="; 32 + }; 33 + } 34 + { 35 + name = "zzdoc-0.0.0-tzT1PuPZAACr1jIJxjTrdOsLbfXS6idWFGfTq0gwxJiv"; 36 + path = fetchgit { 37 + url = "https://github.com/rockorager/zzdoc"; 38 + rev = "57e86eb4e621bc4a96fbe0dd89ad0986db6d0483"; 39 + hash = "sha256-PAGgJCA/B3eSarTNbXB6ENwHNPiHq+wX/n6Rh2s8Pvk="; 40 + }; 41 + } 42 + ]
+51
pkgs/by-name/ls/lsr/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + installShellFiles, 5 + fetchgit, 6 + zig_0_14, 7 + callPackage, 8 + versionCheckHook, 9 + }: 10 + 11 + let 12 + zig = zig_0_14; 13 + in 14 + stdenv.mkDerivation (finalAttrs: { 15 + pname = "lsr"; 16 + version = "0.2.0"; 17 + 18 + src = fetchgit { 19 + url = "https://tangled.sh/@rockorager.dev/lsr"; 20 + rev = "v${finalAttrs.version}"; 21 + sparseCheckout = [ 22 + "src" 23 + "docs" 24 + ]; 25 + hash = "sha256-+5VHY02AHFtV405OGk5PR/2tl/3qDQHDrOUghZbx5ks="; 26 + }; 27 + 28 + postPatch = '' 29 + ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p 30 + ''; 31 + 32 + nativeBuildInputs = [ 33 + installShellFiles 34 + zig.hook 35 + ]; 36 + 37 + doInstallCheck = true; 38 + 39 + nativeInstallCheckInputs = [ versionCheckHook ]; 40 + versionCheckProgramArg = "--version"; 41 + 42 + meta = { 43 + homepage = "https://tangled.sh/@rockorager.dev/lsr"; 44 + description = "ls but with io_uring"; 45 + changelog = "https://tangled.sh/@rockorager.dev/lsr/tags"; 46 + license = lib.licenses.mit; 47 + maintainers = with lib.maintainers; [ ddogfoodd ]; 48 + platforms = lib.platforms.linux; 49 + mainProgram = "lsr"; 50 + }; 51 + })