nixpkgs/pkgs/by-name/di/dix/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
818 B
Nix
Raw Permalink Normal View History

2025-05-21 16:24:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dix";
2025-07-29 22:03:39 +00:00
version = "1.2.2";
2025-05-21 16:24:47 +02:00
src = fetchFromGitHub {
owner = "faukah";
2025-05-21 16:24:47 +02:00
repo = "dix";
tag = "v${finalAttrs.version}";
2025-07-29 22:03:39 +00:00
hash = "sha256-Gq5Nr6xVGpAf1XnYrmoeyvqVgffAi8R6QETJU3xv22M=";
2025-05-21 16:24:47 +02:00
};
2025-07-29 22:03:39 +00:00
cargoHash = "sha256-IEsZNuLXKa+MInuortG4ifHTZ0Ngs0ugm02BK6shzHA=";
2025-05-21 16:24:47 +02:00
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/faukah/dix";
2025-05-21 16:24:47 +02:00
description = "Blazingly fast tool to diff Nix related things";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
faukah
2025-05-21 16:24:47 +02:00
NotAShelf
];
mainProgram = "dix";
};
})