Something went wrong. Try again.
None
Something went wrong. Try again.
std-rust-template flake.nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576# SPDX-FileCopyrightText: 2024 sntx <sntx@sntx.space># SPDX-License-Identifier: AGPL-3.0-or-later
{ description = "A very basic flake for Rust development";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay"; crate2nix = { url = "github:nix-community/crate2nix"; inputs.nixpkgs.follows = "nixpkgs"; };
devshell = { url = "github:numtide/devshell"; inputs.nixpkgs.follows = "nixpkgs"; }; nixago = { url = "github:nix-community/nixago"; inputs.nixpkgs.follows = "nixpkgs"; }; std = { url = "github:divnix/std"; inputs.nixpkgs.follows = "nixpkgs"; inputs.devshell.follows = "devshell"; inputs.nixago.follows = "nixago"; }; std-configs = { url = "sourcehut:~sntx/std-configs"; inputs = { devshell.follows = "devshell"; nixago.follows = "nixago"; nixpkgs.follows = "nixpkgs"; std.follows = "std"; }; }; };
outputs = { self, std, ... }@inputs: std.growOn { inherit inputs; cellsFrom = ./.nix; cellBlocks = with std.blockTypes; [ (installables "packages") # Contribution Environment (devshells "devshells") (functions "configs") (functions "toolchains") ]; } { devShells = std.harvest self [ "repo" "devshells" ]; packages = std.harvest self [ "rust" "packages" ]; };
nixConfig = { allow-import-from-derivation = true; # extra-substituters = [ # "https://nix-community.cachix.org" # ]; # extra-trusted-public-keys = [ # "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" # ]; };}