33 lines
662 B
Nix
33 lines
662 B
Nix
{
|
|
description = "GO";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
in
|
|
{
|
|
devShell =
|
|
with pkgs; mkShell rec {
|
|
# ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
|
GOPATH="${go}";
|
|
buildInputs = [
|
|
go
|
|
];
|
|
|
|
shellHook = ''
|
|
zsh
|
|
|
|
exit
|
|
'';
|
|
};
|
|
});
|
|
}
|
|
|
|
|