buckets: init at 0.75.0 (#346573)
This commit is contained in:
@@ -12018,6 +12018,11 @@
|
||||
github = "kmicklas";
|
||||
githubId = 929096;
|
||||
};
|
||||
kmogged = {
|
||||
name = "Kevin";
|
||||
github = "kmogged";
|
||||
githubId = 22965352;
|
||||
};
|
||||
knairda = {
|
||||
email = "adrian@kummerlaender.eu";
|
||||
name = "Adrian Kummerlaender";
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user