diff --git a/nix/backend.nix b/nix/backend.nix new file mode 100644 index 0000000..b2c031e --- /dev/null +++ b/nix/backend.nix @@ -0,0 +1,19 @@ +{ + lib, + rustPlatform, + stdenv, +}: + +rustPlatform.buildRustPackage rec { + pname = "backend"; + version = "0.1"; + + src = ../.; + + cargoHash = "sha256-NRrWWD3e2zm4rVYyCPm3vQhPDRkVMauTnoENwRucXcw="; + + meta = with lib; { + platforms = lib.platforms.all; + mainProgram = "backend"; + }; +} diff --git a/nix/default.nix b/nix/default.nix index b30fa70..9f96829 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -2,4 +2,5 @@ { native = pkgs.callPackage ./native.nix {}; + backend = pkgs.callPackage ./backend.nix {}; }