2024-01-28 15:42:16 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
freight = {
|
2024-04-04 01:07:14 +01:00
|
|
|
url = "github:gmemstr/freight/patch-1";
|
2024-01-28 15:42:16 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
freight,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
inherit (pkgs) lib; in
|
|
|
|
{
|
2024-04-04 01:07:14 +01:00
|
|
|
packages = rec {
|
|
|
|
web = freight.lib.${system}.mkWorker {
|
|
|
|
pname = "web";
|
|
|
|
version = "0.1.0";
|
|
|
|
strictDeps = true;
|
|
|
|
workspace = true;
|
|
|
|
src = ./.;
|
|
|
|
};
|
|
|
|
queues = freight.lib.${system}.mkWorker {
|
|
|
|
pname = "queues";
|
|
|
|
version = "0.1.0";
|
|
|
|
strictDeps = true;
|
|
|
|
workspace = true;
|
|
|
|
src = ./.;
|
|
|
|
};
|
|
|
|
default = web;
|
2024-01-28 15:42:16 +00:00
|
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
rust-analyzer
|
|
|
|
nodePackages_latest.wrangler
|
|
|
|
openssl
|
|
|
|
pkg-config
|
|
|
|
cargo-bloat
|
2024-04-04 01:07:14 +01:00
|
|
|
cargo-binutils
|
2024-01-28 15:42:16 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|