im fighting for my life here

This commit is contained in:
Julian 2023-04-28 18:51:19 +00:00
parent 596a6c212e
commit 54be29ab79
Signed by: NotNite
GPG key ID: BD91A5402CCEB08A

View file

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