mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-27 14:30:19 +00:00
Patch _version.py
Courtesy of the ZKAPAuthorizer nix expressions
This commit is contained in:
parent
af8e84fc76
commit
cf82b0b3fa
@ -70,6 +70,24 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch =
|
||||||
|
let
|
||||||
|
versionFileContents = version: ''
|
||||||
|
# This _version.py is generated by tahoe-lafs.nix.
|
||||||
|
# TODO: We can have more metadata after we switch to flakes.
|
||||||
|
# Then the `self` input will have a `sourceInfo` attribute telling
|
||||||
|
__pkgname__ = "tahoe-lafs"
|
||||||
|
real_version = "${version}"
|
||||||
|
full_version = "${version}"
|
||||||
|
branch = ""
|
||||||
|
verstr = "${version}"
|
||||||
|
__version__ = verstr
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
''
|
||||||
|
cp ${builtins.toFile "_version.py" (versionFileContents version)} src/allmydata/_version.py
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://tahoe-lafs.org/";
|
homepage = "https://tahoe-lafs.org/";
|
||||||
description = "secure, decentralized, fault-tolerant file store";
|
description = "secure, decentralized, fault-tolerant file store";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user