okami.mom/albedo
git clone https://git.nkp.pet/okami.mom/albedo
5b4d1b2
main
1{ 2imports = [ 3./devShells.nix 4./packages.nix 5./treefmt.nix 6]; 7 8# The daemon needs OTP 29: its HTTP streams flush zstd frames per event. 9# Passed explicitly rather than overlaid, so cached packages built against 10# the default Erlang, gleam among them, are not rebuilt. 11perSystem = { 12lib , 13pkgs , 14 ... 15} :{ 16_module . args . beamPackages = pkgs . beam . packages . erlang_29 ; 17 18# The sources are formatted by Gleam 1.19, whose formatter and 1.18's 19# each reject the other's output. Built from source (hashes from nixpkgs 20# master) only while the locked nixpkgs still ships an older release. 21_module . args . gleam = 22if lib . versionAtLeast pkgs . gleam . version "1.19.0" 23then pkgs . gleam 24else 25pkgs . gleam . overrideAttrs ( finalAttrs :_ :{ 26version = "1.19.0" ; 27src = pkgs . fetchFromGitHub { 28owner = "gleam-lang" ; 29repo = "gleam" ; 30tag = "v ${ finalAttrs . version } " ; 31hash = "sha256-uMD1ZI8A0gdQbIFvJ9q9CVSJ+jvxJiCzdJ1d2r/BHys=" ; 32}; 33cargoDeps = pkgs . rustPlatform . fetchCargoVendor { 34inherit ( finalAttrs ) pname version src ; 35hash = "sha256-TZWaKlgdKKM7IUjYu96rbgWsNjHW16E+UKleB68yIh0=" ; 36}; 37# nixpkgs runs the compiler's suite for this release already. 38doCheck = false ; 39}); 40}; 41}