forked from change-metrics/monocle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
51 lines (48 loc) · 1.72 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
# Note: [Nix Flake Usage]:
#
# The flake location can be defined as:
# `github:change-metrics/monocle`, or `path:/absolute/path`, or `.`
#
# Package output can be accessed using their #name:
# nix show-derivation '.#containerMonocle'
#
# For non packages, the full qualified name can be used:
# nix show derivation '.#devShells."x86_64-linux".ci'
#
# Inspect context using nix-tree, for example:
# nix run github:utdemir/nix-tree -- --derivation .#devShell."x86_64-linux"
{
description = "Monocle";
nixConfig.bash-prompt = "[nix(monocle)] ";
nixConfig = {
extra-substituters = "https://change-metrics.cachix.org";
extra-trusted-public-keys = "change-metrics.cachix.org-1:dCe8jx9vptiF6DCdZ5y2QouvDsxgFRZnbHowhPnS4C0=";
};
inputs = {
nixpkgs.url =
"github:NixOS/nixpkgs/ed014c27f4d0ca772fb57d3b8985b772b0503bbd";
hspkgs.url =
"github:podenv/hspkgs/8596beefeb8471cbafae9bdefb6cb5de8dbc5627";
# "path:/srv/github.com/podenv/hspkgs";
};
outputs = { self, nixpkgs, hspkgs }:
let
legacy = import ./nix/default.nix {
nixpkgsPath = nixpkgs;
hspkgs = hspkgs.pkgs;
self = self;
};
in {
devShell."x86_64-linux" = legacy.shell;
devShells."x86_64-linux".ci = legacy.ci-shell;
packages."x86_64-linux".default = legacy.monocle-exe;
packages."x86_64-linux".env = legacy.monocle-light.env;
packages."x86_64-linux".containerMonocle = legacy.containerMonocle;
packages."x86_64-linux".containerGrafana = legacy.containerGrafana;
packages."x86_64-linux".containerPrometheus = legacy.containerPrometheus;
apps."x86_64-linux".default = {
type = "app";
program = "${legacy.monocle-exe}/bin/monocle";
};
};
}