pkgs/nixfiles: add script that updates flake inputs and pushes it to upstream
This commit is contained in:
parent
b946bd19a1
commit
387412db8e
@ -94,6 +94,7 @@
|
||||
anycast_healthchecker
|
||||
flask-excel
|
||||
iot-data
|
||||
nixfiles-updated-inputs
|
||||
pyexcel-xlsx
|
||||
pyexcel-webio
|
||||
uptimestatus
|
||||
|
10
pkgs/nixfiles/default.nix
Normal file
10
pkgs/nixfiles/default.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "nixfiles-updated-inputs.sh";
|
||||
text = builtins.readFile ./nixfiles-updated-inputs.sh;
|
||||
runtimeInputs = [
|
||||
pkgs.git
|
||||
];
|
||||
}
|
||||
|
13
pkgs/nixfiles/nixfiles-updated-inputs.sh
Executable file
13
pkgs/nixfiles/nixfiles-updated-inputs.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
NOW="$(date --utc --iso-8601=minutes)"
|
||||
|
||||
git fetch origin master
|
||||
git checkout updated-inputs
|
||||
git merge -s ort -X theirs origin/master -m "Update from master ${NOW}"
|
||||
nix flake update
|
||||
git add flake.lock
|
||||
git commit -m "Flake update ${NOW}" || true
|
||||
git push origin updated-inputs
|
@ -2,6 +2,7 @@ self: super: {
|
||||
anycast_healthchecker = self.python3.pkgs.callPackage ./anycast_healthchecker {};
|
||||
flask-excel = self.python3.pkgs.callPackage ./flask-excel {};
|
||||
iot-data = self.python3.pkgs.callPackage ./iot-data {};
|
||||
nixfiles-updated-inputs = self.callPackage ./nixfiles {};
|
||||
pyexcel-xlsx = self.python3.pkgs.callPackage ./pyexcel-xlsx {};
|
||||
pyexcel-webio = self.python3.pkgs.callPackage ./pyexcel-webio {};
|
||||
uptimestatus = self.python3.pkgs.callPackage ./uptimestatus {};
|
||||
|
Loading…
Reference in New Issue
Block a user