ci: add nix-build job

This commit is contained in:
Richard Patel 2023-03-09 02:31:50 +00:00
parent e962765f76
commit 9d16c4006c
2 changed files with 16 additions and 2 deletions

13
.github/workflows/nix_build.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Nix Build
on:
pull_request:
push:
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-build

View File

@ -1,5 +1,6 @@
{ pkgs ? import <nixpkgs> { }, lib ? pkgs.lib
, buildGoModule ? pkgs.buildGoModule, }:
{ pkgs ? import (fetchTarball
"https://github.com/NixOS/nixpkgs/archive/4e9efd3432a9a1f50e81d70e13b38a330428bcca.tar.gz")
{ }, lib ? pkgs.lib, buildGoModule ? pkgs.buildGoModule, }:
buildGoModule rec {
pname = "radiance";