]> git.scottworley.com Git - paperdoorknob/commitdiff
Reduce the number of places we keep our version number: 2 → 1
authorScott Worley <scottworley@scottworley.com>
Fri, 29 Dec 2023 07:06:24 +0000 (23:06 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 29 Dec 2023 07:06:24 +0000 (23:06 -0800)
default.nix

index c27c9e63ad0e21154daadcc17997e2a6a428d93e..bb2d87e986b98702f61a0cd609030d26f81cb0ed 100644 (file)
@@ -5,7 +5,8 @@ pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, makeWrapper
   , pandoc-cli }:
   buildPythonPackage rec {
     pname = "paperdoorknob";
   , 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 =
     src = lib.cleanSource ./.;
     nativeBuildInputs = [ makeWrapper ];
     propagatedBuildInputs =