about summary refs log tree commit diff
path: root/pkgs/tools/misc/todo/default.nix
blob: c11961d0c429607316692ca1e4dc779c27716b70 (plain) (blame)
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
35
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, stdenv
, openssl
}:

rustPlatform.buildRustPackage rec {
  pname = "todo";
  version = "2.4";

  src = fetchFromGitHub {
    owner = "sioodmy";
    repo = "todo";
    rev = version;
    sha256 = "Z3kaCNZyknNHkZUsHARYh3iWWR+v//JhuYoMIrq54Wo=";
  };

  cargoSha256 = "82xB+9kiLBwCE6yC3tlmgzJJgA1cMDq6Mjc48GBZ9B8=";

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ openssl ];
  preFixup = ''
    mv $out/bin/todo-bin $out/bin/todo
  '';
  meta = with lib; {
    description = "Simple todo cli program written in rust";
    homepage = "https://github.com/sioodmy/todo";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ sioodmy ];
    mainProgram = "todo";
  };
}