diff --git a/packages/projects.nix b/packages/projects.nix index 82a4031..f820dea 100644 --- a/packages/projects.nix +++ b/packages/projects.nix @@ -44,7 +44,7 @@ in hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; }; - minio-console = pkgs.callPackage ./servers/minio-console { }; + minio-console = pkgs.callPackage ./servers/minio-console { inherit pins; }; npins = let inherit (inputs.self.packages.${system}) nix-super; diff --git a/packages/servers/minio-console/default.nix b/packages/servers/minio-console/default.nix index f7e2a6d..9411676 100644 --- a/packages/servers/minio-console/default.nix +++ b/packages/servers/minio-console/default.nix @@ -1,15 +1,10 @@ -{ buildGoModule, fetchFromGitHub, lib }: +{ buildGoModule, fetchFromGitHub, lib, pins }: buildGoModule rec { pname = "minio-console"; - version = "0.15.1"; + version = builtins.substring 1 (-1) pins.minio-console.version; - src = fetchFromGitHub { - owner = "minio"; - repo = "console"; - rev = "v${version}"; - sha256 = "sha256-z+4DVJNV1P2/EGJG+tmZjNJiUAUjiH3ko51/9nuLs1c="; - }; + src = pins.minio-console; vendorSha256 = "sha256-h1yIpn5XF7+UeSr1hZEUcKro634zrObvE1ies8yVeGE="; diff --git a/packages/sources/sources.json b/packages/sources/sources.json index a7ff570..6df8319 100644 --- a/packages/sources/sources.json +++ b/packages/sources/sources.json @@ -1,5 +1,19 @@ { "pins": { + "minio-console": { + "type": "GitRelease", + "repository": { + "type": "GitHub", + "owner": "minio", + "repo": "console" + }, + "pre_releases": false, + "version_upper_bound": null, + "version": "v0.15.1", + "revision": "d20be7f836667c477e004ead6329fa8586a7f61c", + "url": "https://api.github.com/repos/minio/console/tarball/v0.15.1", + "hash": "0mxkidxzczwxlgj7v2130m865llck7czlik222zzvm2mjda07vng" + }, "searxng": { "type": "Git", "repository": {