From 6cdc0295c479cfd920cdb75c416b499d329352f1 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Sat, 17 Jan 2026 13:47:35 -0600 Subject: [PATCH] romdirfs: switch to finalAttrs and modernize fetcher This updates the derivation to use the finalAttrs lambda form of mkDerivation, matching current by-name conventions and ensuring explicit self-references. The fetcher is also modernized: - replace rec with (finalAttrs: { ... }) - switch rev = to tag = using finalAttrs.version - replace sha256 = with hash = No functional changes to the build. --- pkgs/by-name/ro/romdirfs/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ro/romdirfs/package.nix b/pkgs/by-name/ro/romdirfs/package.nix index 444b70accec6..9cda3bf8a81e 100644 --- a/pkgs/by-name/ro/romdirfs/package.nix +++ b/pkgs/by-name/ro/romdirfs/package.nix @@ -7,15 +7,15 @@ fuse, }: -gccStdenv.mkDerivation rec { +gccStdenv.mkDerivation (finalAttrs: { pname = "romdirfs"; version = "1.2"; src = fetchFromGitHub { owner = "mlafeldt"; repo = "romdirfs"; - rev = "v${version}"; - sha256 = "1jbsmpklrycz5q86qmzvbz4iz2g5fvd7p9nca160aw2izwpws0g7"; + tag = "v${finalAttrs.version}"; + hash = "sha256-5wHNL/9RcAVMUMyme9p25YkfyV/7V2wQLp/5TOetesk="; }; nativeBuildInputs = [ @@ -37,4 +37,4 @@ gccStdenv.mkDerivation rec { maintainers = [ ]; mainProgram = "romdirfs"; }; -} +})