From 681c2bd06893c728febe8e2a8f61f204a6b23deb Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 28 Dec 2023 23:06:24 -0800 Subject: [PATCH 1/1] =?utf8?q?Reduce=20the=20number=20of=20places=20we=20k?= =?utf8?q?eep=20our=20version=20number:=202=20=E2=86=92=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index c27c9e6..bb2d87e 100644 --- a/default.nix +++ b/default.nix @@ -5,7 +5,8 @@ pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, makeWrapper , pandoc-cli }: buildPythonPackage rec { pname = "paperdoorknob"; - version = "0.0.1"; + version = lib.removeSuffix "'" (lib.removePrefix "paperdoorknob_version = '" + (lib.fileContents ./version.py)); src = lib.cleanSource ./.; nativeBuildInputs = [ makeWrapper ]; propagatedBuildInputs = -- 2.44.1