2023-04-12 07:16:36 +03:00
|
|
|
{
|
2023-04-12 07:17:37 +03:00
|
|
|
description = "Web application for musikcube servers";
|
|
|
|
|
2023-04-12 07:16:36 +03:00
|
|
|
inputs.parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
inputs.systems.url = "github:nix-systems/x86_64-linux";
|
|
|
|
inputs.naked-shell.url = "github:yusdacra/mk-naked-shell";
|
|
|
|
|
|
|
|
outputs = inp:
|
|
|
|
inp.parts.lib.mkFlake {inputs = inp;} {
|
|
|
|
systems = import inp.systems;
|
2023-05-05 11:02:20 +03:00
|
|
|
imports = [
|
|
|
|
inp.naked-shell.flakeModule
|
|
|
|
];
|
|
|
|
perSystem = {
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}: {
|
2023-04-12 11:09:04 +03:00
|
|
|
devShells.default = config.mk-naked-shell.lib.mkNakedShell {
|
2023-04-12 07:16:36 +03:00
|
|
|
name = "musikspider-devshell";
|
2023-10-13 18:12:34 +03:00
|
|
|
packages = with pkgs; [nodejs_20 bun];
|
|
|
|
shellHook = ''
|
|
|
|
export PATH="$PATH:$PWD/node_modules/.bin"
|
|
|
|
'';
|
2023-04-12 07:16:36 +03:00
|
|
|
};
|
2023-10-13 18:12:34 +03:00
|
|
|
# packages.musikspider = pkgs.mkYarnPackage {
|
|
|
|
# src = ./.;
|
2023-05-05 11:02:20 +03:00
|
|
|
|
2023-10-13 18:12:34 +03:00
|
|
|
# buildPhase = "HOME=$TMPDIR yarn --offline build";
|
|
|
|
# distPhase = "true";
|
|
|
|
# installPhase = "mv deps/musikspider/build $out";
|
|
|
|
# };
|
|
|
|
# packages.default = config.packages.musikspider;
|
2023-04-12 07:16:36 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|