sync flake version with fyneapp.toml file

This commit is contained in:
Aaron Bieber 2024-08-26 08:21:47 -06:00
parent 5c61cc19b8
commit 3ab775da04
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View File

@ -4,4 +4,5 @@ Website = "https://github.com/qbit/traygent"
Icon = "traygent.png"
Name = "traygent"
ID = "dev.suah.traygent"
Version = "1.0.8"
Version = "1.0.8"
Build = 1

View File

@ -5,6 +5,8 @@
outputs = { self, nixpkgs }:
let
inherit (builtins) readFile fromTOML;
verStr = fromTOML (readFile ./FyneApp.toml);
supportedSystems =
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
@ -17,7 +19,7 @@
traygent = with pkgs;
buildGoModule rec {
pname = "traygent";
version = "v1.0.8";
version = "v${verStr}";
src = ./.;
vendorHash = "sha256-rYLUBRX0m9sCihu6EhakiC1jAzp6NAY7oLaSSKwNqhU=";
@ -46,7 +48,7 @@
# No wayland yet, it opens a second window
buildPhase = ''
${fyne}/bin/fyne package
${fyne}/bin/fyne package --release
'';
installPhase = ''