-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
33 lines (32 loc) · 697 Bytes
/
shell.nix
File metadata and controls
33 lines (32 loc) · 697 Bytes
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
{ pkgs ? (
let
inherit (builtins) fetchTree fromJSON readFile;
inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix;
in
import (fetchTree nixpkgs.locked) {
overlays = [
(import "${fetchTree gomod2nix.locked}/overlay.nix")
];
}
)
, mkGoEnv ? pkgs.mkGoEnv
, gomod2nix ? pkgs.gomod2nix
}:
let
goEnv = mkGoEnv { pwd = ./.; };
conservationmode =
pkgs.writeShellScriptBin "conservationmode" ''
${builtins.readFile ./conservationmode}
'';
in
pkgs.mkShellNoCC {
packages = with pkgs;[
goEnv
gomod2nix
pkg-config
libayatana-appindicator
gtk3
conservationmode
];
CONSERVATION_TEST_ENV = 1;
}