packages/uptime-kuma: convert to pin

This commit is contained in:
Max Headroom 2022-05-26 21:34:14 +02:00
parent aee48155a9
commit 0c8d518b5d
2 changed files with 20 additions and 7 deletions

View file

@ -2,6 +2,9 @@
let let
inherit (pkgs) lib; inherit (pkgs) lib;
inherit (inputs) unstable; inherit (inputs) unstable;
pins = import ./sources;
dream2nix = inputs.dream2nix.lib2.init { dream2nix = inputs.dream2nix.lib2.init {
systems = [ system ]; systems = [ system ];
config = { config = {
@ -33,12 +36,7 @@ in
uptime-kuma = let uptime-kuma = let
dream = dream2nix.makeFlakeOutputs { dream = dream2nix.makeFlakeOutputs {
source = builtins.fetchTree { source = pins.uptime-kuma;
type = "github";
owner = "louislam";
repo = "uptime-kuma";
rev = "751924b3355ca44d24ceede1cfdd983383426f5f"; # 1.15.0
};
}; };
inherit (dream.packages.${system}) uptime-kuma; inherit (dream.packages.${system}) uptime-kuma;
in in

View file

@ -1,4 +1,19 @@
{ {
"pins": {}, "pins": {
"uptime-kuma": {
"type": "GitRelease",
"repository": {
"type": "GitHub",
"owner": "louislam",
"repo": "uptime-kuma"
},
"pre_releases": false,
"version_upper_bound": null,
"version": "1.15.0",
"revision": "751924b3355ca44d24ceede1cfdd983383426f5f",
"url": "https://api.github.com/repos/louislam/uptime-kuma/tarball/1.15.0",
"hash": "0yylwz4xa98d6szp3bk9sy4p6h2fimq8nq4yczw0jd5r81a1dmx9"
}
},
"version": 2 "version": 2
} }