https://git.jolheiser.com/rs-spectre.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
{ inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; outputs = { nixpkgs, ... }: let systems = [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems f; in { packages = forAllSystems ( system: let pkgs = import nixpkgs { inherit system; }; name = "spectre"; in { default = pkgs.rustPlatform.buildRustPackage { pname = name; version = "0.1.0"; src = pkgs.nix-gitignore.gitignoreSource [ ] ( builtins.path { inherit name; path = ./.; } ); useFetchCargoVendor = true; cargoHash = "sha256-t0FXfIImqQiFbSVbDC+CEBE3IBXpWR4A3DQmhLnaCm0="; }; } ); }; }