Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 1.1 kB view raw
1{ 2 lib, 3 buildRubyGem, 4 bundlerEnv, 5 ruby, 6 poppler-utils, 7}: 8let 9 deps = bundlerEnv rec { 10 name = "anystyle-cli-${version}"; 11 source.sha256 = lib.fakeSha256; 12 version = "1.5.0"; 13 inherit ruby; 14 gemdir = ./.; 15 gemset = lib.recursiveUpdate (import ./gemset.nix) { 16 anystyle.source = { 17 remotes = [ "https://rubygems.org" ]; 18 sha256 = "C/OrU7guHzHdY80upEXRfhWmUYDxpI54NIvIjKv0znw="; 19 type = "gem"; 20 }; 21 }; 22 }; 23in 24buildRubyGem rec { 25 inherit ruby; 26 gemName = "anystyle-cli"; 27 pname = gemName; 28 version = "1.5.0"; 29 source.sha256 = "Bkk00PBk/6noCXgAbr1XUcdBq5vpdeL0ES02eeNA594="; 30 31 propagatedBuildInputs = [ deps ]; 32 33 preFixup = '' 34 wrapProgram $out/bin/anystyle --prefix PATH : ${poppler-utils}/bin 35 ''; 36 37 meta = with lib; { 38 description = "Command line interface to the AnyStyle Parser and Finder"; 39 homepage = "https://anystyle.io/"; 40 license = licenses.bsd2; 41 maintainers = with maintainers; [ 42 aschleck 43 shamilton 44 ]; 45 mainProgram = "anystyle"; 46 platforms = platforms.unix; 47 }; 48}