From: Scott Worley Date: Fri, 29 Dec 2023 07:06:24 +0000 (-0800) Subject: Reduce the number of places we keep our version number: 2 → 1 X-Git-Url: http://git.scottworley.com/paperdoorknob/commitdiff_plain/681c2bd06893c728febe8e2a8f61f204a6b23deb Reduce the number of places we keep our version number: 2 → 1 --- 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 =