From e16a290a9c1316fd4d484b206d94d7f8a93a7164 Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 5 Apr 2025 03:07:08 +0200 Subject: [PATCH 1/2] foodfetch: init at 0.1.1 Apply suggestions from code review Co-authored-by: emaryn <197520219+emaryn@users.noreply.github.com> fix Update pkgs/by-name/fo/foodfetch/package.nix Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com> Update pkgs/by-name/fo/foodfetch/package.nix Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com> --- pkgs/by-name/fo/foodfetch/package.nix | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/fo/foodfetch/package.nix diff --git a/pkgs/by-name/fo/foodfetch/package.nix b/pkgs/by-name/fo/foodfetch/package.nix new file mode 100644 index 000000000000..83b2f0b9a864 --- /dev/null +++ b/pkgs/by-name/fo/foodfetch/package.nix @@ -0,0 +1,40 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + openssl, + pkg-config, + versionCheckHook, + nix-update-script, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "foodfetch"; + version = "0.1.1"; + src = fetchFromGitHub { + owner = "noahfraiture"; + repo = "foodfetch"; + tag = "v${finalAttrs.version}"; + hash = "sha256-TUgj3zS18lCtkyxYrG4f156YqFSCGXzfbK6b+Owacto="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-ZPV6sDQHV+G0HxRAVlcilh4tCCQspTnxnH1aHxVP8tI="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + doInstallCheck = true; + nativeInstallCheck = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + changelog = "https://github.com/noahfraiture/foodfetch/releases/tag/v${finalAttrs.version}"; + description = "Yet another fetch to quickly get recipes"; + homepage = "https://github.com/noahfraiture/foodfetch"; + license = lib.licenses.mit; + mainProgram = "foodfetch"; + maintainers = with lib.maintainers; [ noahfraiture ]; + }; +}) From a503352bd4f01122721be5e2c7b210e273840a98 Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 9 Apr 2025 00:50:57 +0200 Subject: [PATCH 2/2] maintainers: add noahfraiture --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 014ac42e06cd..34f30f43630d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17279,6 +17279,12 @@ github = "noaccOS"; githubId = 24324352; }; + noahfraiture = { + name = "Noahcode"; + email = "pro@noahcode.dev"; + github = "noahfraiture"; + githubId = 94681915; + }; noahgitsham = { name = "Noah Gitsham"; github = "noahgitsham";