2021-05-04 04:01:43 -07:00
|
|
|
{ sources ? import nix/sources.nix # Please specify inputs obtained from `sources` as separate params like below
|
|
|
|
, cargo2nix ? sources.cargo2nix
|
|
|
|
, nixpkgs ? sources.nixpkgs
|
|
|
|
, rust-olay ? import sources.rust-overlay
|
|
|
|
}:
|
|
|
|
let
|
2021-06-21 08:23:41 -07:00
|
|
|
scripts-olay = import ./nix/scripts.nix;
|
2021-05-04 04:01:43 -07:00
|
|
|
cargo2nix-olay = import "${cargo2nix}/overlay";
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
overlays = [
|
|
|
|
# cargo2nix-olay
|
|
|
|
rust-olay
|
|
|
|
scripts-olay
|
|
|
|
];
|
|
|
|
};
|
|
|
|
cargo2nix-drv = import cargo2nix {
|
|
|
|
inherit nixpkgs;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = (
|
|
|
|
with pkgs; [
|
|
|
|
go
|
|
|
|
gopls
|
|
|
|
hidapi
|
|
|
|
libudev
|
2021-06-21 08:23:41 -07:00
|
|
|
niv
|
2021-05-04 04:01:43 -07:00
|
|
|
openssl
|
|
|
|
pkgconfig
|
|
|
|
protobuf
|
|
|
|
whcluster
|
|
|
|
whinotify
|
|
|
|
whkube
|
|
|
|
whtilt
|
2021-06-21 08:23:41 -07:00
|
|
|
whremote
|
2021-05-04 04:01:43 -07:00
|
|
|
# (
|
|
|
|
# rust-bin.stable."1.51.0".default.override {
|
|
|
|
# extensions = [
|
|
|
|
# "rust-src"
|
|
|
|
# "rust-analysis"
|
|
|
|
# ];
|
|
|
|
# }
|
|
|
|
# )
|
|
|
|
# Provided on Fedora:
|
|
|
|
kubectl
|
|
|
|
minikube
|
2021-06-21 08:23:41 -07:00
|
|
|
tilt
|
2021-05-04 04:01:43 -07:00
|
|
|
# xargo
|
|
|
|
]
|
|
|
|
);
|
|
|
|
DOCKER_BUILDKIT = 1;
|
|
|
|
PROTOC = "${pkgs.protobuf}/bin/protoc";
|
|
|
|
}
|