-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
45 lines (37 loc) · 1.19 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
description = "A location finding game.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
systems.url = "github:nix-systems/default";
};
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [ ];
perSystem = { self', pkgs, lib, ... }: {
devShells.default = pkgs.mkShellNoCC {
packages = [
pkgs.nodejs_22
pkgs.prefetch-npm-deps
];
};
packages.default = pkgs.buildNpmPackage rec {
pname = "locsearch";
version = "1.0.0";
src = inputs.self;
npmDepsHash = "sha256-QnpGqEDbUT/MpMQgOSUt1ObeiTpCNC9Z1RCalgNzros=";
dontNpmBuild = true; # this doesn't have a build script
meta = {
description = "A location finding game.";
homepage = "https://github.com/strifel/locSearch";
license = lib.licenses.mit;
};
};
apps.default = {
type = "app";
program = "${self'.packages.default}/bin/locsearch";
};
};
flake.nixosModules.default = import ./nixos-module.nix inputs.self;
};
}