Update flake inputs (#467)

* Add github workflow to update flake inputs weekly

also including initial flake.lock update.

* Use a different nixpkgs for the time being (until PR is merged)
This commit is contained in:
Rok Garbas 2022-04-07 23:36:07 +02:00 committed by GitHub
parent 9315e259b6
commit 808e929a71
Failed to generate hash of commit
3 changed files with 38 additions and 18 deletions

19
.github/workflows/update-flake-lock.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v16
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v8

View file

@ -2,11 +2,11 @@
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1644229661,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"lastModified": 1648297722,
"narHash": "sha256-W+qlPsiZd8F3XkzXOzAoR+mpFqzm3ekQkJNa+PIh1BQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"rev": "0f8662f1319ad6abf89b3380dd2722369fc51ade",
"type": "github"
},
"original": {
@ -17,17 +17,18 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1642903813,
"narHash": "sha256-0lNfGW8sNfyTrixoQhVG00Drl/ECaf5GbfKAQ1ZDoyE=",
"owner": "NixOS",
"lastModified": 1649314464,
"narHash": "sha256-dU/Ed+VXtCAWbwRtHg9KPnskhRypB0nMb9Av/OOrV84=",
"owner": "aforemny",
"repo": "nixpkgs",
"rev": "689b76bcf36055afdeb2e9852f5ecdd2bf483f87",
"rev": "3d88f74c9d13e599d1bd3633e8afb197b8378071",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
"owner": "aforemny",
"ref": "fix/elm-format",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {

View file

@ -1,15 +1,15 @@
{
description = "Code behind search.nixos.org";
nixConfig = {
extra-substituters = [ "https://nixos-search.cachix.org" ];
extra-trusted-public-keys = [ "nixos-search.cachix.org-1:1HV3YF8az4fywnH+pAd+CXFEdpTXtv9WpoivPi+H70o=" ];
};
nixConfig.extra-substituters = [ "https://nixos-search.cachix.org" ];
nixConfig.extra-trusted-public-keys = [ "nixos-search.cachix.org-1:1HV3YF8az4fywnH+pAd+CXFEdpTXtv9WpoivPi+H70o=" ];
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
# TODO: follow nixos-unstable once elm-format fix is merged and release
# on nixos-unstable channels:
# https://github.com/NixOS/nixpkgs/pull/167642
# inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
inputs.nixpkgs.url = "github:aforemny/nixpkgs/fix/elm-format";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self
, nixpkgs