From 1c35b30210a7b4be4ace553ea45321cfcfbc307b Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 21 May 2025 16:24:47 +0200 Subject: [PATCH] dix: init at 1.0.0 --- pkgs/by-name/di/dix/package.nix | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/di/dix/package.nix diff --git a/pkgs/by-name/di/dix/package.nix b/pkgs/by-name/di/dix/package.nix new file mode 100644 index 000000000000..05bf4c748aed --- /dev/null +++ b/pkgs/by-name/di/dix/package.nix @@ -0,0 +1,37 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, + versionCheckHook, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "dix"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "bloxx12"; + repo = "dix"; + tag = "v${finalAttrs.version}"; + hash = "sha256-hsTw0MyxYD4UtUEeXgNRjmp1yla9Renl6xD19XQ5/LY="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-9uGtkWBShoge5tyeIdgJhthaBDF2nzCUbeY8HcaLWYc="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + homepage = "https://github.com/bloxx12/dix"; + description = "Blazingly fast tool to diff Nix related things"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + bloxx12 + NotAShelf + ]; + mainProgram = "dix"; + }; +})