packages/minio-console: convert to pin

This commit is contained in:
Max Headroom 2022-05-26 21:56:59 +02:00
parent 2d4885c9bd
commit 8e8c4354da
3 changed files with 18 additions and 9 deletions

View file

@ -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;

View file

@ -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=";

View file

@ -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": {