aboutsummaryrefslogblamecommitdiff
path: root/flake.nix
blob: 450a5a16b747af811b11ce23a3678de311b78479 (plain) (tree)






























                                                                                                               
{
  description = "A very basic flake";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/a3073c49bc0163fea6a121c276f526837672b555";
  inputs.cargo2nix = {
    # As of 2022-10-18: two small patches over unstable branch, one for clippy and one to fix feature detection
    url = "github:Alexis211/cargo2nix/a7a61179b66054904ef6a195d8da736eaaa06c36";
    inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, cargo2nix }:
  let
    pkgs = import nixpkgs {
      system = "x86_64-linux";
      overlays = [ cargo2nix.overlays.default ];
    };
    packageFun = import ./Cargo.nix;
    packageSet = pkgs.rustBuilder.makePackageSet {
      inherit packageFun;
      release = true;
      rustVersion = "1.63.0";
    };
    tricot = packageSet.workspace.tricot {
      compileMode = "build";
    };
  in
  {
    packages.x86_64-linux.tricot = tricot;
    packages.x86_64-linux.default = tricot;
  };
}