Unverified Commit 6b31915a authored by Donovan Glover's avatar Donovan Glover Committed by GitHub
Browse files

komac: migrate to `finalAttrs` (#387439)

parents 66bf805d 19b01fd7
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -15,18 +15,14 @@
  nix-update-script,
  bzip2,
}:

let
rustPlatform.buildRustPackage (finalAttrs: {
  version = "2.10.1";
  src = fetchFromGitHub {
    owner = "russellbanks";
    repo = "Komac";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-oqnFenSFWCe3vax5mqstvNNTFWOecLOkuhJzaxv78yE=";
  };
in
rustPlatform.buildRustPackage {
  inherit version src;

  pname = "komac";

@@ -72,7 +68,7 @@ rustPlatform.buildRustPackage {

  passthru = {
    tests.version = testers.testVersion {
      inherit version;
      inherit (finalAttrs) version;

      package = komac;
      command = "komac --version";
@@ -84,7 +80,7 @@ rustPlatform.buildRustPackage {
  meta = {
    description = "Community Manifest Creator for WinGet";
    homepage = "https://github.com/russellbanks/Komac";
    changelog = "https://github.com/russellbanks/Komac/releases/tag/v${version}";
    changelog = "https://github.com/russellbanks/Komac/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [
      kachick
@@ -92,4 +88,4 @@ rustPlatform.buildRustPackage {
    ];
    mainProgram = "komac";
  };
}
})