mirror of
https://github.com/NixOS/templates.git
synced 2026-01-12 17:28:25 +01:00
appended a newline before ');', slightly improving the visibility of the block scope. This is in compliance with the rnix lsp formater :D
22 lines
649 B
Nix
22 lines
649 B
Nix
{
|
|
inputs = {
|
|
naersk.url = "github:nix-community/naersk/master";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils, naersk }:
|
|
utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
naersk-lib = pkgs.callPackage naersk { };
|
|
in
|
|
{
|
|
defaultPackage = naersk-lib.buildPackage ./.;
|
|
devShell = with pkgs; mkShell {
|
|
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
|
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
|
};
|
|
}
|
|
);
|
|
}
|