ls but with io_uring
1{ pkgs, ... }:
2
3pkgs.stdenv.mkDerivation {
4 pname = "lsr-cache";
5 version = "1.0.0";
6 doCheck = false;
7 src = ../.;
8
9 nativeBuildInputs = with pkgs; [ zig ];
10
11 buildPhase = ''
12 export ZIG_GLOBAL_CACHE_DIR=$(mktemp -d)
13 zig build --fetch --summary none
14 '';
15
16 installPhase = ''
17 mv $ZIG_GLOBAL_CACHE_DIR/p $out
18 '';
19
20 outputHash = "sha256-bfc2dlQa1VGq9S6OBeQawAJuvfxU4kgFtQ13fuKhdZc=";
21 outputHashMode = "recursive";
22 outputHashAlgo = "sha256";
23}