♻️ Simple & Efficient Gemini-to-HTTP Proxy fuwn.net
proxy gemini-protocol protocol gemini http rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(nix): flake-based development shell

Fuwn 0870052b b0efb367

+138
+10
.envrc
··· 1 + #!/usr/bin/env bash 2 + 3 + if type -P lorri &>/dev/null; then 4 + eval "$(lorri direnv)" 5 + else 6 + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' 7 + 8 + use nix 9 + fi 10 +
+82
flake.lock
··· 1 + { 2 + "nodes": { 3 + "flake-utils": { 4 + "inputs": { 5 + "systems": "systems" 6 + }, 7 + "locked": { 8 + "lastModified": 1710146030, 9 + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", 10 + "owner": "numtide", 11 + "repo": "flake-utils", 12 + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", 13 + "type": "github" 14 + }, 15 + "original": { 16 + "owner": "numtide", 17 + "repo": "flake-utils", 18 + "type": "github" 19 + } 20 + }, 21 + "nixpkgs": { 22 + "locked": { 23 + "lastModified": 1726206720, 24 + "narHash": "sha256-tI7141IHDABMNgz4iXDo8agCp0SeTLbaIZ2DRndwcmk=", 25 + "owner": "NixOS", 26 + "repo": "nixpkgs", 27 + "rev": "673d99f1406cb09b8eb6feab4743ebdf70046557", 28 + "type": "github" 29 + }, 30 + "original": { 31 + "owner": "NixOS", 32 + "ref": "nixpkgs-unstable", 33 + "repo": "nixpkgs", 34 + "type": "github" 35 + } 36 + }, 37 + "root": { 38 + "inputs": { 39 + "flake-utils": "flake-utils", 40 + "nixpkgs": "nixpkgs", 41 + "rust-overlay": "rust-overlay" 42 + } 43 + }, 44 + "rust-overlay": { 45 + "inputs": { 46 + "nixpkgs": [ 47 + "nixpkgs" 48 + ] 49 + }, 50 + "locked": { 51 + "lastModified": 1726280639, 52 + "narHash": "sha256-YfLRPlFZWrT2oRLNAoqf7G3+NnUTDdlIJk6tmBU7kXM=", 53 + "owner": "oxalica", 54 + "repo": "rust-overlay", 55 + "rev": "e9f8641c92f26fd1e076e705edb12147c384171d", 56 + "type": "github" 57 + }, 58 + "original": { 59 + "owner": "oxalica", 60 + "repo": "rust-overlay", 61 + "type": "github" 62 + } 63 + }, 64 + "systems": { 65 + "locked": { 66 + "lastModified": 1681028828, 67 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 68 + "owner": "nix-systems", 69 + "repo": "default", 70 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 71 + "type": "github" 72 + }, 73 + "original": { 74 + "owner": "nix-systems", 75 + "repo": "default", 76 + "type": "github" 77 + } 78 + } 79 + }, 80 + "root": "root", 81 + "version": 7 82 + }
+46
flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 4 + flake-utils.url = "github:numtide/flake-utils"; 5 + 6 + rust-overlay = { 7 + url = "github:oxalica/rust-overlay"; 8 + inputs.nixpkgs.follows = "nixpkgs"; 9 + }; 10 + }; 11 + 12 + outputs = 13 + { 14 + nixpkgs, 15 + flake-utils, 16 + rust-overlay, 17 + ... 18 + }: 19 + flake-utils.lib.eachDefaultSystem ( 20 + system: 21 + let 22 + overlays = [ (import rust-overlay) ]; 23 + pkgs = import nixpkgs { inherit system overlays; }; 24 + in 25 + { 26 + devShell = 27 + with pkgs; 28 + mkShell.override 29 + { 30 + stdenv = stdenvAdapters.useMoldLinker clangStdenv; 31 + } 32 + { 33 + nativeBuildInputs = [ 34 + rust-bin.stable.latest.default 35 + cargo-make 36 + openssl 37 + pkg-config 38 + cargo-watch 39 + ]; 40 + 41 + # https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/5?u=fuwn 42 + RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; 43 + }; 44 + } 45 + ); 46 + }