nixpkgs/pkgs/tools/text/yx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
810 B
Nix
Raw Normal View History

2024-01-21 14:00:35 +00:00
{ lib
, stdenv
, fetchFromGitLab
, libyaml
, testers
, yx
}:
2023-08-30 16:19:55 +00:00
stdenv.mkDerivation rec {
pname = "yx";
version = "1.0.0";
src = fetchFromGitLab {
owner = "tomalok";
repo = "yx";
2023-08-30 16:19:55 +00:00
rev = version;
sha256 = "sha256-oY61V9xP0DwRooabzi0XtaFsQa2GwYbuvxfERXQtYcA=";
};
makeFlags = [
"PREFIX=${placeholder "out"}"
];
strictDeps = true;
buildInputs = [ libyaml ];
doCheck = true;
2024-01-21 14:00:35 +00:00
passthru.tests.version = testers.testVersion {
package = yx;
command = "${meta.mainProgram} -v";
version = "v${yx.version}";
};
2023-08-30 16:19:55 +00:00
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";
2023-08-30 16:19:55 +00:00
};
}