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