Skip to content

Commit

Permalink
buckets: init at 0.75.0 (NixOS#346573)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 19, 2024
2 parents 881f180 + 5d6219c commit ebf85c7
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12018,6 +12018,11 @@
github = "kmicklas";
githubId = 929096;
};
kmogged = {
name = "Kevin";
github = "kmogged";
githubId = 22965352;
};
knairda = {
email = "[email protected]";
name = "Adrian Kummerlaender";
Expand Down
63 changes: 63 additions & 0 deletions pkgs/by-name/bu/buckets/package.nix
Original file line number Diff line number Diff line change
@@ -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 <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";
};
}

0 comments on commit ebf85c7

Please sign in to comment.