Skip to content

Commit

Permalink
release: 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
programotuojes committed Sep 29, 2024
1 parent bb2646b commit ad644df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
{
packages.${system}.default = flutter.buildFlutterApplication {
pname = "finances";
version = "0.3.1";
version =
let
versionMatch = builtins.match ".*version: ([0-9]+\.[0-9]+\.[0-9]+)\n" (builtins.readFile ./pubspec.yaml);
in
if versionMatch != null && versionMatch != [ ]
then builtins.head versionMatch
else throw "Failed to extract version from pubspec.yaml";
src = ./.;
autoPubspecLock = ./pubspec.lock;
extraWrapProgramArgs = "--suffix LD_LIBRARY_PATH : ${ld-library-path}";
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: finances
description: A new Flutter project.
publish_to: 'none'
version: 0.3.1
version: 0.4.0

environment:
sdk: '>=3.1.4 <4.0.0'
Expand Down

0 comments on commit ad644df

Please sign in to comment.