Add nix devshell
This commit is contained in:
parent
3702fc3acb
commit
1c7de4fc91
4 changed files with 88 additions and 0 deletions
59
flake.nix
Normal file
59
flake.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
description = "terraform-provider-tor";
|
||||
inputs = {
|
||||
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # tracks nixpkgs unstable branch
|
||||
};
|
||||
outputs =
|
||||
inputs:
|
||||
let
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
forEachSupportedSystem =
|
||||
f:
|
||||
inputs.nixpkgs.lib.genAttrs supportedSystems (
|
||||
system:
|
||||
f {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
};
|
||||
pkgs-mine = import inputs.nixpkgs-mine {
|
||||
inherit system;
|
||||
overlays = [
|
||||
inputs.self.overlays.default
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
overlays.default =
|
||||
final: prev:
|
||||
{
|
||||
};
|
||||
|
||||
devShells = forEachSupportedSystem (
|
||||
{ pkgs, pkgs-mine }:
|
||||
let
|
||||
libraries = [
|
||||
];
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.go
|
||||
pkgs.golangci-lint
|
||||
pkgs.obfs4
|
||||
];
|
||||
buildInputs = libraries;
|
||||
inputsFrom = libraries;
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath libraries;
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue