Merge pull request #228222 from figsoda/melt

authored by figsoda and committed by GitHub 1aa3393f 890315e0

+42
+40
pkgs/tools/nix/nix-melt/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , installShellFiles 5 + }: 6 + 7 + rustPlatform.buildRustPackage rec { 8 + pname = "nix-melt"; 9 + version = "0.1.2"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "nix-community"; 13 + repo = "nix-melt"; 14 + rev = "v${version}"; 15 + hash = "sha256-5V9sPbBb9t4B6yiLrYF+hx6YokGDH6+UsVQBhgqxMbY="; 16 + }; 17 + 18 + cargoHash = "sha256-yBoaLqynvYC9ebC0zjd2FmSSd53xzn4ralihtCFubAw="; 19 + 20 + nativeBuildInputs = [ 21 + installShellFiles 22 + ]; 23 + 24 + env = { 25 + GEN_ARTIFACTS = "artifacts"; 26 + }; 27 + 28 + postInstall = '' 29 + installManPage artifacts/nix-melt.1 30 + installShellCompletion artifacts/nix-melt.{bash,fish} --zsh artifacts/_nix-melt 31 + ''; 32 + 33 + meta = with lib; { 34 + description = "A ranger-like flake.lock viewer"; 35 + homepage = "https://github.com/nix-community/nix-melt"; 36 + changelog = "https://github.com/nix-community/nix-melt/blob/${src.rev}/CHANGELOG.md"; 37 + license = licenses.mpl20; 38 + maintainers = with maintainers; [ figsoda ]; 39 + }; 40 + }
+2
pkgs/top-level/all-packages.nix
··· 38867 38867 38868 38868 nix-linter = haskell.lib.compose.justStaticExecutables (haskellPackages.nix-linter); 38869 38869 38870 + nix-melt = callPackage ../tools/nix/nix-melt { }; 38871 + 38870 38872 nixos-option = callPackage ../tools/nix/nixos-option { nix = nixVersions.nix_2_3; }; 38871 38873 38872 38874 nix-pin = callPackage ../tools/package-management/nix-pin { };