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

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

View File

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