From 0c8d518b5d376cddf8c716f3ffb32e73818fbbe5 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 26 May 2022 21:34:14 +0200 Subject: [PATCH] packages/uptime-kuma: convert to pin --- packages/projects.nix | 10 ++++------ packages/sources/sources.json | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/projects.nix b/packages/projects.nix index 4e290e8..060527a 100644 --- a/packages/projects.nix +++ b/packages/projects.nix @@ -2,6 +2,9 @@ let inherit (pkgs) lib; inherit (inputs) unstable; + + pins = import ./sources; + dream2nix = inputs.dream2nix.lib2.init { systems = [ system ]; config = { @@ -33,12 +36,7 @@ in uptime-kuma = let dream = dream2nix.makeFlakeOutputs { - source = builtins.fetchTree { - type = "github"; - owner = "louislam"; - repo = "uptime-kuma"; - rev = "751924b3355ca44d24ceede1cfdd983383426f5f"; # 1.15.0 - }; + source = pins.uptime-kuma; }; inherit (dream.packages.${system}) uptime-kuma; in diff --git a/packages/sources/sources.json b/packages/sources/sources.json index aed5882..cb8dd84 100644 --- a/packages/sources/sources.json +++ b/packages/sources/sources.json @@ -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 } \ No newline at end of file