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
808 B
Nix
Raw Normal View History

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