nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (794B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   ftxui,
      7   nlohmann_json,
      8   libargs,
      9 }:
     10 
     11 stdenv.mkDerivation (finalAttrs: {
     12   pname = "json-tui";
     13   version = "1.4.1";
     14 
     15   src = fetchFromGitHub {
     16     owner = "ArthurSonzogni";
     17     repo = "json-tui";
     18     tag = "v${finalAttrs.version}";
     19     hash = "sha256-qS2EbCxH8sUUJMu5hwm1+Nu6SsJRfLReX56YSd1RZU4=";
     20   };
     21 
     22   patches = [ ./no-deps.patch ];
     23 
     24   nativeBuildInputs = [ cmake ];
     25 
     26   buildInputs = [
     27     ftxui
     28     nlohmann_json
     29     libargs
     30   ];
     31 
     32   meta = {
     33     description = "A JSON terminal UI made in C++";
     34     homepage = "https://github.com/ArthurSonzogni/json-tui";
     35     license = lib.licenses.mit;
     36     maintainers = [ lib.maintainers.sikmir ];
     37     platforms = lib.platforms.unix;
     38     broken = lib.versionOlder nlohmann_json.version "3.12.0";
     39   };
     40 })