Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 1.1 kB view raw
1{ 2 lib, 3 ruby, 4 buildRubyGem, 5 bundlerEnv, 6 bundlerUpdateScript, 7}: 8let 9 deps = bundlerEnv rec { 10 inherit ruby; 11 name = "flatito-${version}"; 12 version = "0.1.1"; 13 gemdir = ./.; 14 gemset = lib.recursiveUpdate (import ./gemset.nix) { 15 flatito.source = { 16 remotes = [ "https://rubygems.org" ]; 17 sha256 = "9f5a8f899a14c1a0fe74cb89288f24ddc47bd5d83ac88ac8023d19b056ecb50f"; 18 type = "gem"; 19 }; 20 }; 21 }; 22in 23 24buildRubyGem rec { 25 inherit ruby; 26 27 gemName = "flatito"; 28 pname = gemName; 29 version = "0.1.1"; 30 31 source.sha256 = "sha256-n1qPiZoUwaD+dMuJKI8k3cR71dg6yIrIAj0ZsFbstQ8="; 32 propagatedBuildInputs = [ deps ]; 33 34 passthru.updateScript = bundlerUpdateScript "${pname}"; 35 36 meta = with lib; { 37 description = "It allows you to search for a key and get the value and the line number where it is located in YAML and JSON files"; 38 homepage = "https://github.com/ceritium/flatito"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ rucadi ]; 41 platforms = platforms.unix; 42 mainProgram = "flatito"; 43 }; 44}