From ea1627ec2e3f43b328cfa26c21d0c3a09dca7184 Mon Sep 17 00:00:00 2001 From: Spencer Brower Date: Mon, 29 Jun 2026 18:04:28 -0400 Subject: [PATCH] build: nix version is now pinned to `version.txt`. --- Makefile | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cce9c31..30b2e0f 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Builds release artifacts for GitHub releases APP_NAME := envr -VERSION := $(shell grep 'version = ' flake.nix | head -1 | sed 's/.*version = "\(.*\)";/\1/') +VERSION := $(file < version.txt) BUILD_DIR := builds # Binary names diff --git a/flake.nix b/flake.nix index d3609cc..d9d1c64 100644 --- a/flake.nix +++ b/flake.nix @@ -66,7 +66,7 @@ packages.default = pkgs.stdenv.mkDerivation rec { pname = "envr"; - version = "0.3.0"; + version = nixpkgs.lib.trim (builtins.readFile ./version.txt); src = ./.; nativeBuildInputs = [