From bed3fe7f63ec050f2da09ab7342c83988f9d30e5 Mon Sep 17 00:00:00 2001 From: kmogged <22965352+kmogged@users.noreply.github.com> Date: Sat, 5 Oct 2024 11:00:28 -0500 Subject: [PATCH 1/2] maintainers: add kmogged --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c68e50f10578..235d8aee7bfe 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11315,6 +11315,11 @@ github = "kmicklas"; githubId = 929096; }; + kmogged = { + name = "Kevin"; + github = "kmogged"; + githubId = 22965352; + }; knairda = { email = "adrian@kummerlaender.eu"; name = "Adrian Kummerlaender"; From 5d6219c83cedec5868aabbd11f914e2b28197881 Mon Sep 17 00:00:00 2001 From: kmogged <22965352+kmogged@users.noreply.github.com> Date: Sat, 5 Oct 2024 11:03:53 -0500 Subject: [PATCH 2/2] buckets: init at 0.75.0 Adds initial package for the financial application buckets (https://www.budgetwithbuckets.com/) --- pkgs/by-name/bu/buckets/package.nix | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkgs/by-name/bu/buckets/package.nix diff --git a/pkgs/by-name/bu/buckets/package.nix b/pkgs/by-name/bu/buckets/package.nix new file mode 100644 index 000000000000..4a572cf0d0cf --- /dev/null +++ b/pkgs/by-name/bu/buckets/package.nix @@ -0,0 +1,63 @@ +{ + fetchurl, + appimageTools, + lib, + makeWrapper, + stdenv, +}: + +let + + inherit (stdenv.hostPlatform) system; + + platform = + { + x86_64-linux = "amd64"; + aarch64-linux = "arm64"; + } + .${system}; + + # Get hash in sri format + # nix-prefetch-url | xargs nix hash to-sri --type sha256 --extra-experimental-features nix-command + hash = + { + x86_64-linux = "sha256-Gj/VDsV+ks8bhsFwU47+oBmsYOa0lQMHZeqQ3/IHm9E="; + aarch64-linux = "sha256-9pIT7iiarHBtHRdX5lqdfmJLJLMkugqZdprBZm5g1A8="; + } + .${system}; + + pname = "buckets"; + version = "0.75.0"; + src = fetchurl { + url = "https://github.com/buckets/application/releases/download/v${version}/Buckets-linux-latest-${platform}-${version}.AppImage"; + inherit hash; + }; + appimageContents = appimageTools.extractType2 { inherit pname version src; }; +in +appimageTools.wrapType2 { + inherit pname version src; + extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libsodium ]; + extraInstallCommands = '' + source "${makeWrapper}/nix-support/setup-hook" + wrapProgram $out/bin/buckets + install -m 444 -D ${appimageContents}/buckets.desktop -t $out/share/applications + substituteInPlace $out/share/applications/buckets.desktop \ + --replace-fail 'Exec=AppRun' 'Exec=buckets' + for size in 16 32 48 64 128 256 512; do + install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/''${size}x''${size}/apps/buckets.png \ + $out/share/icons/hicolor/''${size}x''${size}/apps/buckets.png + done + ''; + + meta = { + description = "Private family budgeting app"; + homepage = "https://www.budgetwithbuckets.com/"; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ kmogged ]; + platforms = [ + "x86_64-linux" + "aarch64-linux" + ]; + mainProgram = "buckets"; + }; +}