forked from Wikidata/SQID
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
82 lines (71 loc) · 2.05 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
description = "SQID, a data browser for Wikidata";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
gitignoresrc = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
node2nix = {
url = "github:svanderburg/node2nix";
inputs = {
flake-utils.follows = "utils/flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "utils/flake-utils";
};
};
};
outputs = inputs @ {
self,
utils,
...
}: let
sqid-overlay = import ./nix {inherit (inputs) gitignoresrc;};
mkToolchain = pkgs:
pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
utils.lib.mkFlake {
inherit self inputs;
channels.nixpkgs.overlaysBuilder = channels: [
inputs.rust-overlay.overlays.default
sqid-overlay
];
overlays.default = sqid-overlay;
outputsBuilder = channels: {
packages = rec {
sqid-helper = channels.nixpkgs.sqid-helper;
default = sqid-helper;
};
devShell = channels.nixpkgs.mkShell {
RUST_LOG = "debug";
RUST_BACKTRACE = "1";
buildInputs = with channels.nixpkgs; [
(mkToolchain channels.nixpkgs)
# inputs.node2nix.packages."${channels.nixpkgs.system}".node2nix
nodejs
nodePackages.eslint
nodePackages.typescript
nodePackages.typescript-language-server
nodePackages.vls
nodePackages.vscode-css-languageserver-bin
nodePackages.vscode-html-languageserver-bin
nodePackages.vue-cli
cargo-audit
cargo-license
python310
ansible
openssl
pkg-config
];
};
formatter = channels.nixpkgs.alejandra;
};
};
}