diff --git a/pkgs/by-name/pr/promexplorer/lock.json b/pkgs/by-name/pr/promexplorer/lock.json new file mode 100644 index 000000000000..b4df2eff89fd --- /dev/null +++ b/pkgs/by-name/pr/promexplorer/lock.json @@ -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" + } + ] +} diff --git a/pkgs/tools/misc/promexplorer/default.nix b/pkgs/by-name/pr/promexplorer/package.nix similarity index 73% rename from pkgs/tools/misc/promexplorer/default.nix rename to pkgs/by-name/pr/promexplorer/package.nix index 3f02597bbcff..d0443ecf1aa6 100644 --- a/pkgs/tools/misc/promexplorer/default.nix +++ b/pkgs/by-name/pr/promexplorer/package.nix @@ -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"; }; -} +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 26227fb8ce15..13bbdd5c1ec8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };