Compare commits
2 Commits
39eaf9834a
...
ccb4c9e373
Author | SHA1 | Date | |
---|---|---|---|
|
ccb4c9e373 | ||
|
47b1ceba79 |
8
flake.lock
generated
8
flake.lock
generated
@ -379,17 +379,17 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743784303,
|
"lastModified": 1744440957,
|
||||||
"narHash": "sha256-IlAPw8Hlwhy3xGOos7ji0W/O/oqWLhNtff84daWi1P0=",
|
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "95e38bac46071545b324dcb5932940f844d598f4",
|
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "release-24.11",
|
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
|
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/26d499fc9f1d567283d5d56fcf367edd815dba1d";
|
||||||
nixos-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixos-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
nixos-master.url = "github:NixOS/nixpkgs/master";
|
nixos-master.url = "github:NixOS/nixpkgs/master";
|
||||||
local-unstable.url = "path:///home/giulio/dev/nixpkgs";
|
local-unstable.url = "path:///home/giulio/dev/nixpkgs";
|
||||||
|
14
update_cached_hashes.sh
Executable file
14
update_cached_hashes.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# this guy updates the hash of the last
|
||||||
|
# successful build of nixpkgs on hydra
|
||||||
|
# (so we don't have to rebuild EVERYTHING)
|
||||||
|
RELEASE=24.11
|
||||||
|
|
||||||
|
new=$(curl -sL "https://monitoring.nixos.org/prometheus/api/v1/query?query=channel_revision" | jq -r ".data.result[] | select(.metric.channel==\"nixos-${RELEASE}\") | .metric.revision")
|
||||||
|
old=$(jq -r ".nodes.nixpkgs.locked.rev" flake.lock)
|
||||||
|
|
||||||
|
echo "Old hash: ${old}"
|
||||||
|
echo "New hash: ${new}"
|
||||||
|
|
||||||
|
sed -i s/"${old}"/"${new}"/ flake.nix
|
Loading…
x
Reference in New Issue
Block a user