Skip to content

Commit

Permalink
Nix: fix TAG substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Dec 23, 2024
1 parent 5f7ad76 commit 68a5842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
nvidiaPatches ? false,
hidpiXWayland ? false,
}: let
inherit (builtins) baseNameOf foldl';
inherit (builtins) baseNameOf foldl' readFile;
inherit (lib.asserts) assertMsg;
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.lists) flatten concatLists optional optionals;
inherit (lib.sources) cleanSourceWith cleanSource;
inherit (lib.strings) hasSuffix makeBinPath optionalString mesonBool mesonEnable;
inherit (lib.strings) hasSuffix makeBinPath optionalString mesonBool mesonEnable trim;

adapters = flatten [
stdenvAdapters.useMoldLinker
Expand Down Expand Up @@ -91,7 +91,7 @@ in
DATE = date;
DIRTY = optionalString (commit == "") "dirty";
HASH = commit;
TAG = "v${builtins.readFile "${finalAttrs.src}/VERSION"}";
TAG = "v${trim (readFile "${finalAttrs.src}/VERSION")}";

depsBuildBuild = [
pkg-config
Expand Down

0 comments on commit 68a5842

Please sign in to comment.