im fighting for my life here
This commit is contained in:
parent
596a6c212e
commit
54be29ab79
1 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
outputs = { self, nixpkgs, crane, flake-utils }:
|
outputs = { self, nixpkgs, crane, flake-utils }:
|
||||||
let
|
let
|
||||||
description = "blazingly-fast super-concurrent webscale file server";
|
description = "blazingly-fast super-concurrent webscale file server";
|
||||||
|
src = ./.;
|
||||||
packages = flake-utils.lib.eachDefaultSystem (system:
|
packages = flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages."${system}";
|
pkgs = nixpkgs.legacyPackages."${system}";
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
pname = "u";
|
pname = "u";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
# Don't use cleanCargoSource here, as it removes sqlx-data.json
|
# Don't use cleanCargoSource here, as it removes sqlx-data.json
|
||||||
src = ./.;
|
src = src;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -97,7 +98,7 @@
|
||||||
|
|
||||||
# Create and migrate the database
|
# Create and migrate the database
|
||||||
${pkgs.sqlx-cli}/bin/sqlx database create
|
${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";
|
script = "${pkg}/bin/u";
|
||||||
|
|
Loading…
Reference in a new issue