flvtool2: fix installation

The rubygems.org source doesn't exist anymore. It was also depending on ruby
1.8 to work correctly.

+9 -22
+9 -22
pkgs/tools/video/flvtool2/default.nix
··· 1 - { stdenv, fetchurl, ruby }: 1 + { buildRubyGem, lib, ruby_2_2 }: 2 2 3 - stdenv.mkDerivation rec { 4 - name = "flvtool2-1.0.6"; 5 - 6 - src = fetchurl { 7 - url = "http://rubyforge.org/frs/download.php/17497/${name}.tgz"; 8 - sha256 = "1pbsf0fvqrs6xzfkqal020bplb68dfiz6c5sfcz36k255v7c5w9a"; 9 - }; 10 - 11 - buildInputs = [ ruby ]; 12 - 13 - configurePhase = 14 - '' 15 - substituteInPlace bin/flvtool2 --replace "/usr/bin/env ruby" "ruby -I$out/lib/ruby/site_ruby/1.8" 16 - ruby setup.rb config --prefix=$out --siterubyver=$out/lib/ruby/site_ruby/1.8 17 - ''; 18 - 19 - installPhase = 20 - '' 21 - ruby setup.rb install 22 - ''; 3 + buildRubyGem rec { 4 + ruby = ruby_2_2; 5 + name = "${gemName}-${version}"; 6 + gemName = "flvtool2"; 7 + version = "1.0.6"; 8 + sha256 = "0xsla1061pi4ryh3jbvwsbs8qchprchbqjy7652g2g64v37i74qj"; 23 9 24 10 meta = { 25 - homepage = http://www.inlet-media.de/flvtool2/; 11 + homepage = https://github.com/unnu/flvtool2; 26 12 description = "A tool to manipulate Macromedia Flash Video files"; 13 + platforms = ruby.meta.platforms; 27 14 }; 28 15 }