Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flyx/go-1.18-nix
Nix Flake for Go 1.18 beta
https://github.com/flyx/go-1.18-nix
Last synced: 10 days ago
JSON representation
Nix Flake for Go 1.18 beta
- Host: GitHub
- URL: https://github.com/flyx/go-1.18-nix
- Owner: flyx
- Created: 2022-02-01T20:54:29.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-01T21:00:12.000Z (almost 3 years ago)
- Last Synced: 2024-10-25T19:43:27.245Z (about 2 months ago)
- Language: Nix
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Nix Overlay for Go 1.18beta2
This overlay adds Go 1.18 beta 2 to your packages.
It also adds `buildGo118Module` which uses this new beta version to build Go modules.Go 1.18 beta 2 is **beta software** and **not production ready**.
Use at your own risk.## Usage
In a flake:
```nix
{
inputs.nixpkgs.url = github:nixos/nixpkgs;
inputs.go-1-18.url = github:flyx/go-1-18-nix;outputs = { self, nixpkgs, go-1-18 }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ go-1-18.overlay ];
};
in {
defaultPackage.x86_64-linux = pkgs.buildGo118Module {
# ...
};
};
}
```## How this works
I basically copied nixpkgs' Go 1.17 package, updated the source to point to the 1.18 beta, and made minimal necessary modifications so that the Go 1.18 codebase builds.
This isn't necessarily everything that *should* be done.