File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,24 @@ buildPythonPackage rec {
70
70
} ;
71
71
} ;
72
72
73
+ postPatch =
74
+ let
75
+ versionFileContents = version : ''
76
+ # This _version.py is generated by tahoe-lafs.nix.
77
+ # TODO: We can have more metadata after we switch to flakes.
78
+ # Then the `self` input will have a `sourceInfo` attribute telling
79
+ __pkgname__ = "tahoe-lafs"
80
+ real_version = "${ version } "
81
+ full_version = "${ version } "
82
+ branch = ""
83
+ verstr = "${ version } "
84
+ __version__ = verstr
85
+ '' ;
86
+ in
87
+ ''
88
+ cp ${ builtins . toFile "_version.py" ( versionFileContents version ) } src/allmydata/_version.py
89
+ '' ;
90
+
73
91
meta = with lib ; {
74
92
homepage = "https://tahoe-lafs.org/" ;
75
93
description = "secure, decentralized, fault-tolerant file store" ;
You can’t perform that action at this time.
0 commit comments