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";
|
2024-01-21 14:50:47 +01:00
|
|
|
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 ];
|
2023-12-20 03:45:17 +01:00
|
|
|
mainProgram = "yx";
|
2023-08-30 18:19:55 +02:00
|
|
|
};
|
|
|
|
}
|