diff --git a/flake.lock b/flake.lock index 5699221..1c6f685 100644 --- a/flake.lock +++ b/flake.lock @@ -127,6 +127,7 @@ "original": { "owner": "oxalica", "repo": "rust-overlay", + "rev": "74f1a64dd28faeeb85ef081f32cad2989850322c", "type": "github" } }, diff --git a/flake.nix b/flake.nix index e3aafb1..2275d98 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "A very basic flake"; + description = "Tricot, a reverse proxy with consul integration"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/a3073c49bc0163fea6a121c276f526837672b555"; inputs.cargo2nix = { @@ -15,8 +15,13 @@ outputs = { self, nixpkgs, cargo2nix }: let + targetHost = "x86_64-unknown-linux-musl"; pkgs = import nixpkgs { system = "x86_64-linux"; + crossSystem = { + config = targetHost; + isStatic = true; + }; overlays = [ cargo2nix.overlays.default ]; }; packageFun = import ./Cargo.nix; @@ -26,6 +31,7 @@ let packageSet = pkgs.rustBuilder.makePackageSet ({ inherit packageFun rustVersion; + target = targetHost; } // args); in packageSet.workspace.tricot {