promexplorer: build with lockfile

This commit is contained in:
Emery Hemingway 2023-10-31 16:05:49 +00:00
parent 29b302705b
commit 146947ca3b
3 changed files with 21 additions and 8 deletions

View File

@ -0,0 +1,16 @@
{
"depends": [
{
"method": "fetchzip",
"packages": [
"illwill"
],
"path": "/nix/store/3lmm3z36qn4gz7bfa209zv0pqrpm3di9-source",
"ref": "v0.3.2",
"rev": "1d12cb36ab7b76c31d2d25fa421013ecb382e625",
"sha256": "0f9yncl5gbdja18mrqf5ixrdgrh95k0khda923dm1jd1x1b7ar8z",
"srcDir": "",
"url": "https://github.com/johnnovak/illwill/archive/1d12cb36ab7b76c31d2d25fa421013ecb382e625.tar.gz"
}
]
}

View File

@ -1,16 +1,15 @@
{ lib, nimPackages, fetchFromGitHub }:
nimPackages.buildNimPackage rec {
{ lib, buildNimPackage, fetchFromGitHub }:
buildNimPackage (finalAttrs: {
pname = "promexplorer";
version = "0.0.5";
nimBinOnly = true;
src = fetchFromGitHub {
owner = "marcusramberg";
repo = "promexplorer";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-a+9afqdgLgGf2hOWf/QsElq+CurDfE1qDmYCzodZIDU=";
};
buildInputs = with nimPackages; [ illwill illwillwidgets ];
lockFile = ./lock.json;
meta = with lib; {
description = "A simple tool to explore prometheus exporter metrics";
@ -20,4 +19,4 @@ nimPackages.buildNimPackage rec {
maintainers = with maintainers; [ marcusramberg ];
mainProgram = "promexplorer";
};
}
})

View File

@ -11332,8 +11332,6 @@ with pkgs;
present-cli = callPackage ../tools/misc/present-cli { };
promexplorer = callPackage ../tools/misc/promexplorer { };
pulsemixer = callPackage ../tools/audio/pulsemixer { };
pwsafe = callPackage ../applications/misc/pwsafe { };