mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 10:14:13 +02:00
some updates
This commit is contained in:
parent
2f81852da1
commit
93a015e163
13 changed files with 1072 additions and 606 deletions
12
flake.nix
12
flake.nix
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
inputs = {
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "nixpkgs/release-22.11";
|
||||
nixpkgs.url = "nixpkgs/release-23.11";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
naersk.url = "github:nix-community/naersk";
|
||||
naersk.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -21,17 +21,18 @@
|
|||
overlays = [
|
||||
(import rust-overlay)
|
||||
(final: prev: {
|
||||
npmlock2nix = import npmlock2nix {pkgs = final;};
|
||||
npmlock2nix = final.callPackage npmlock2nix {};
|
||||
})
|
||||
];
|
||||
pkgs = (import nixpkgs) {
|
||||
inherit system overlays;
|
||||
};
|
||||
inherit (pkgs) lib callPackage dockerTools;
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
|
||||
src = lib.sources.sourceByRegex ./. ["Cargo.*" "(src|build|images|script|style)(/.*)?" "sqlx-data.json"];
|
||||
nodeSrc = lib.sources.sourceByRegex ./. ["package.*"];
|
||||
toolchain = pkgs.rust-bin.nightly."2023-03-31".default;
|
||||
src = sourceByRegex ./. ["Cargo.*" "(src|build|images|script|style|.sqlx)(/.*)?"];
|
||||
nodeSrc = sourceByRegex ./. ["package.*"];
|
||||
toolchain = pkgs.rust-bin.nightly."2024-01-16".default;
|
||||
|
||||
naersk' = callPackage naersk {
|
||||
rustc = toolchain;
|
||||
|
|
@ -41,6 +42,7 @@
|
|||
packages = rec {
|
||||
node_modules = pkgs.npmlock2nix.v2.node_modules {
|
||||
src = nodeSrc;
|
||||
nodejs = pkgs.nodejs_20;
|
||||
};
|
||||
frontend = naersk'.buildPackage {
|
||||
pname = "demostf-frontend";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue