Files
nixpkgs/pkgs/development/ocaml-modules/get-activity/lib.nix
T
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

55 lines
981 B
Nix

{
lib,
buildDunePackage,
fetchFromGitHub,
ppx_expect,
astring,
curly,
fmt,
logs,
ppx_yojson_conv,
ppx_yojson_conv_lib,
yojson,
alcotest,
}:
buildDunePackage rec {
pname = "get-activity-lib";
version = "2.0.1";
src = fetchFromGitHub {
owner = "tarides";
repo = "get-activity";
rev = version;
hash = "sha256-QU/LPIxcem5nFvSxcNApOuBu6UHqLHIXVSOJ2UT0eKA=";
};
minimalOCamlVersion = "4.08";
buildInputs = [ ppx_yojson_conv ];
propagatedBuildInputs = [
astring
curly
fmt
logs
ppx_yojson_conv_lib
yojson
];
checkInputs = [
ppx_expect
alcotest
];
doCheck = true;
meta = {
homepage = "https://github.com/tarides/get-activity";
description = "Collect activity and format as markdown for a journal (lib)";
license = lib.licenses.mit;
changelog = "https://github.com/tarides/get-activity/releases/tag/${version}";
maintainers = with lib.maintainers; [ zazedd ];
};
}