10 blake3-src = fetchFromGitHub {
11 owner = "BLAKE3-team";
13 rev = "refs/tags/1.5.1";
14 hash = "sha256-STWAnJjKrtb2Xyj6i1ACwxX/gTkQo5jUHilcqcgJYxc=";
17 rustPlatform.buildRustPackage rec {
18 pname = "cached-nix-shell";
21 src = fetchFromGitHub {
23 repo = "cached-nix-shell";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-LI/hecqeRg3eCzU2bASJA8VoG4nvrSeHSeaGYn7M/UI=";
28 cargoHash = "sha256-Jf0VRTGwdKxCwyb9hVKDQcdZsHHWaedrDbwq9MK1tn4=";
35 # The BLAKE3 C library is intended to be built by the project depending on it
36 # rather than as a standalone library.
37 # https://github.com/BLAKE3-team/BLAKE3/blob/0.3.1/c/README.md#building
38 env.BLAKE3_CSRC = "${blake3-src}/c";
41 make -f nix/Makefile post-build
45 make -f nix/Makefile post-install
49 description = "Instant startup time for nix-shell";
50 mainProgram = "cached-nix-shell";
51 homepage = "https://github.com/xzfc/cached-nix-shell";
52 changelog = "https://github.com/xzfc/cached-nix-shell/releases/tag/v${version}";
53 license = with lib.licenses; [
58 maintainers = with lib.maintainers; [ xzfc ];
59 platforms = lib.platforms.linux ++ lib.platforms.darwin;