From a35cc60f237588c6d05dc72c5d16e93f52749d2e Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 5 Jul 2024 13:45:42 +0200 Subject: [PATCH] nix/backend: init --- nix/backend.nix | 19 +++++++++++++++++++ nix/default.nix | 1 + 2 files changed, 20 insertions(+) create mode 100644 nix/backend.nix 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 {}; }