summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/pr/present-cli/package.nix
blob: bd124106b852c956358d3c5eb019b311ca61202b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  fetchFromGitHub,
  rustPlatform,
}:

rustPlatform.buildRustPackage {
  pname = "present";
  version = "0.2.3";

  src = fetchFromGitHub {
    owner = "terror";
    repo = "present";
    rev = "43c10253dc31038614eba5824588dbf2716212d6A";
    sha256 = "aMy8Qn1kUM7jmvD9nGjBk1XXQF1rTLfnPDJOh9d4uIg=";
  };

  cargoHash = "sha256-rLLhZL8WQs68+nwCrJ9Dej3T1JU9t+ZrBhSMxAdOfbw=";

  # required for tests
  postPatch = ''
    patchShebangs bin/get_version
  '';

  doCheck = true;

  meta = {
    description = "Script interpolation engine for markdown documents";
    homepage = "https://github.com/terror/present/";
    license = lib.licenses.cc0;
    maintainers = [ ];
    mainProgram = "present";
  };
}