about summary refs log tree commit diff
path: root/pkgs/tools/text/yx/default.nix
blob: b3098fb6dcc49a9981e2c7ad748ee1d017defc7a (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
{ lib, stdenv, fetchFromGitLab, libyaml }:
stdenv.mkDerivation rec {
  pname = "yx";
  version = "1.0.0";

  src = fetchFromGitLab {
    owner = "tomalok";
    repo = "yx";
    rev = version;
    sha256 = "sha256-oY61V9xP0DwRooabzi0XtaFsQa2GwYbuvxfERXQtYcA=";
  };

  makeFlags = [
    "PREFIX=${placeholder "out"}"
  ];

  strictDeps = true;

  buildInputs = [ libyaml ];

  doCheck = true;

  meta = with lib; {
    description = "YAML Data Extraction Tool";
    homepage = "https://gitlab.com/tomalok/yx";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ twz123 ];
    mainProgram = "yx";
  };
}