summaryrefslogtreecommitdiff
path: root/flake.nix
blob: cac6b57a10279019839f383ce512c53f60817aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  description = "A very basic flake";

  inputs = {
    rust-overlay = {
      url = "github:oxalica/rust-overlay";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nixpkgs.url = "nixpkgs/nixos-unstable";
  };
  outputs = { self, nixpkgs, rust-overlay, ... }: let
    system = "x86_64-linux";
    overlays = [ rust-overlay.overlays.default ];
    pkgs = import nixpkgs { inherit overlays system; };
    rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
    buildRustPackage = pkgs.rustPlatform.buildRustPackage;
  in {
    packages.x86_64-linux.wage =
      pkgs.callPackage ./wage { inherit rust buildRustPackage; };
  };
}