From 54be29ab79a0f2dd1794db99bdf4dd6117874e04 Mon Sep 17 00:00:00 2001 From: NotNite Date: Fri, 28 Apr 2023 18:51:19 +0000 Subject: [PATCH] im fighting for my life here --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index b7a2dc8..2706707 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,7 @@ outputs = { self, nixpkgs, crane, flake-utils }: let description = "blazingly-fast super-concurrent webscale file server"; + src = ./.; packages = flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; @@ -20,7 +21,7 @@ pname = "u"; version = "0.1.0"; # Don't use cleanCargoSource here, as it removes sqlx-data.json - src = ./.; + src = src; doCheck = false; }; @@ -97,7 +98,7 @@ # Create and migrate the database ${pkgs.sqlx-cli}/bin/sqlx database create - ${pkgs.sqlx-cli}/bin/sqlx migrate run + ${pkgs.sqlx-cli}/bin/sqlx migrate run --source "${src}/migrations" ''; script = "${pkg}/bin/u";