musikspider/flake.nix

36 lines
1022 B
Nix
Raw Normal View History

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-05-09 16:38:04 +03:00
packages = with pkgs; [nodejs yarn];
2023-04-12 07:16:36 +03:00
};
2023-05-05 11:02:20 +03:00
packages.musikspider = pkgs.mkYarnPackage {
src = ./.;
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
};
};
}