jag

typing_rust

public

A small typing test program in Rust

Star0
Watch0
d2ab8fb1c40bdc9178b73218198acccb7dc4810d
1
ssh://git@git.jaglekon.de:30/jag/typing_rust.git
flake.nixNix33 lines674 B
1
{
2
  description = "Rust Typing Test";
3
4
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
5
6
  outputs = {nixpkgs, ...}: let
7
    system = "x86_64-linux";
8
    pkgs = nixpkgs.legacyPackages.${system};
9
  in {
10
    packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
11
      pname = "typing_rust";
12
      version = "1.0.0";
13
14
      src = ./.;
15
16
      cargoLock.lockFile = ./Cargo.lock;
17
18
      meta = {
19
        description = "Rust Typing Test";
20
        mainProgram = "typing_rust";
21
      };
22
    };
23
24
    devShells.${system}.default = pkgs.mkShell {
25
      packages = with pkgs; [
26
        rustc
27
        cargo
28
        rustfmt
29
        clippy
30
      ];
31
    };
32
  };
33
}