Skip to content

Commit

Permalink
Set version in nix
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 22, 2023
1 parent 230f34b commit a232d2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

outputs = { self, nixpkgs, ... }:
let
version = builtins.substring 0 8 self.lastModifiedDate;
version = "nix-${self.shortRev or self.dirtyShortRev}";

supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];

Expand Down Expand Up @@ -40,6 +40,8 @@
darwin.apple_sdk_11_0.frameworks.UserNotifications
];

ldflags = [ "-X=main.Version=${version}" ];

meta = with pkgs.lib; {
description = "Alerts every 20 minutes to look something at 20 feet away for 20 seconds";
homepage = "https://github.com/thiagokokada/twenty-twenty-twenty";
Expand Down

0 comments on commit a232d2c

Please sign in to comment.