From 5681d9ecbc071083418efda57d8c6c4b2fb1c568 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Wed, 30 Aug 2023 18:19:55 +0200 Subject: [PATCH] yx: init at 1.0.0 --- pkgs/tools/text/yx/default.nix | 31 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/text/yx/default.nix diff --git a/pkgs/tools/text/yx/default.nix b/pkgs/tools/text/yx/default.nix new file mode 100644 index 000000000000..bff2b955fb42 --- /dev/null +++ b/pkgs/tools/text/yx/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitLab, libyaml }: +stdenv.mkDerivation rec { + pname = "yx"; + version = "1.0.0"; + + src = fetchFromGitLab { + owner = "tomalok"; + repo = pname; + 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 = pname; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3e58d68f01b8..5a92dd4936b6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15078,6 +15078,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + yx = callPackage ../tools/text/yx { }; + zarchive = callPackage ../tools/archivers/zarchive { }; zprint = callPackage ../development/tools/zprint { };