Compare commits

..

2 Commits

Author SHA1 Message Date
Giulio De Pasquale
ccb4c9e373 bump nixpkgs 2025-04-18 17:00:05 +01:00
Giulio De Pasquale
47b1ceba79 feat: added update hashes script 2025-04-18 16:45:24 +01:00
3 changed files with 19 additions and 5 deletions

8
flake.lock generated
View File

@ -379,17 +379,17 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1743784303,
"narHash": "sha256-IlAPw8Hlwhy3xGOos7ji0W/O/oqWLhNtff84daWi1P0=",
"lastModified": 1744440957,
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "95e38bac46071545b324dcb5932940f844d598f4",
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-24.11",
"repo": "nixpkgs",
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
"type": "github"
}
},

View File

@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
nixpkgs.url = "github:NixOS/nixpkgs/26d499fc9f1d567283d5d56fcf367edd815dba1d";
nixos-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixos-master.url = "github:NixOS/nixpkgs/master";
local-unstable.url = "path:///home/giulio/dev/nixpkgs";

14
update_cached_hashes.sh Executable file
View 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