nix/backend: init

This commit is contained in:
Johannes Jöns 2024-07-05 13:45:42 +02:00
parent e877b94653
commit a35cc60f23
2 changed files with 20 additions and 0 deletions

19
nix/backend.nix Normal file
View file

@ -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";
};
}

View file

@ -2,4 +2,5 @@
{
native = pkgs.callPackage ./native.nix {};
backend = pkgs.callPackage ./backend.nix {};
}