programming puzzle solutions
at main 819 B view raw
1{ 2 description = "Dev shell for my Advent of Code solutions; Provides Rust"; 3 4 inputs = { 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 rust-overlay.url = "github:oxalica/rust-overlay"; 7 flake-utils.url = "github:numtide/flake-utils"; 8 }; 9 10 outputs = 11 { 12 self, 13 nixpkgs, 14 rust-overlay, 15 flake-utils, 16 ... 17 }: 18 flake-utils.lib.eachDefaultSystem ( 19 system: 20 let 21 overlays = [ (import rust-overlay) ]; 22 pkgs = import nixpkgs { 23 inherit system overlays; 24 }; 25 in 26 { 27 devShells.default = 28 with pkgs; 29 mkShell { 30 buildInputs = [ 31 openssl 32 pkg-config 33 rust-bin.beta.latest.default 34 bacon 35 ]; 36 }; 37 } 38 ); 39}