Commit 6cdc0295 authored by Guy Chronister's avatar Guy Chronister
Browse files

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.
parent 85a96587
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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";
  };
}
})