Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 30 lines 811 B view raw
1{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }: 2 3stdenv.mkDerivation rec { 4 pname = "watson-ruby"; 5 version = (import ./gemset.nix).watson-ruby.version; 6 7 phases = [ "installPhase" ]; 8 9 installPhase = let 10 env = bundlerEnv { 11 name = "watson-ruby-gems-${version}"; 12 inherit ruby; 13 # expects Gemfile, Gemfile.lock and gemset.nix in the same directory 14 gemdir = ./.; 15 }; 16 in '' 17 mkdir -p $out/bin 18 ln -s ${env}/bin/watson $out/bin/watson 19 ''; 20 21 passthru.updateScript = bundlerUpdateScript "watson-ruby"; 22 23 meta = with stdenv.lib; { 24 description = "An inline issue manager"; 25 homepage = "https://goosecode.com/watson/"; 26 license = with licenses; mit; 27 maintainers = with maintainers; [ robertodr nicknovitski ]; 28 platforms = platforms.unix; 29 }; 30}