1{ lib
2, fetchhg
3, stdenv
4, python3
5}:
6
7stdenv.mkDerivation rec {
8 pname = "hg-commitsigs";
9 # Latest tag is 11 years old.
10 version = "unstable-2021-01-08";
11
12 src = fetchhg {
13 url = "https://foss.heptapod.net/mercurial/commitsigs";
14 rev = "b53eb6862bff";
15 sha256 = "sha256-PS1OhC9MiVFD7WYlIn6FavD5TyhM50WoV6YagI2pLxU=";
16 };
17
18 # Not sure how the tests are supposed to be run, and they 10 years old...
19 doCheck = false;
20 dontBuild = true;
21
22 installPhase = ''
23 mkdir -p $out/lib/${python3.libPrefix}/site-packages/hgext3rd/
24 install -D $src/commitsigs.py \
25 $out/lib/${python3.libPrefix}/site-packages/hgext3rd/
26 '';
27
28 meta = with lib; {
29 description = "Automatic signing of changeset hashes";
30 longDescription = ''
31 This packages provides a Mercurial extension that lets you sign
32 the changeset hash when you commit. The signature is embedded
33 directly in the changeset itself; there wont be any extra
34 commits. Either GnuPG or OpenSSL can be used to sign the hashes.
35 '';
36 homepage = "https://foss.heptapod.net/mercurial/commitsigs";
37 maintainers = with maintainers; [ yoctocell ];
38 license = licenses.gpl2Plus;
39 platforms = platforms.unix; # same as Mercurial
40 };
41}