diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-03-08 10:55:39 +0000 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-03-08 10:55:39 +0000 |
commit | 74c69387db1531783f4256b397d90bc16f24a0db (patch) | |
tree | 4ad3d83b19da0cffa3bfd99260204627af27fb22 /pkgs/tools/video | |
parent | 263488530e33176d1f12dafb1496e520354e6938 (diff) |
flvtool2: fix installation
The rubygems.org source doesn't exist anymore. It was also depending on ruby
1.8 to work correctly.
Diffstat (limited to 'pkgs/tools/video')
-rw-r--r-- | pkgs/tools/video/flvtool2/default.nix | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/pkgs/tools/video/flvtool2/default.nix b/pkgs/tools/video/flvtool2/default.nix index dbda4e117708..65bc240af001 100644 --- a/pkgs/tools/video/flvtool2/default.nix +++ b/pkgs/tools/video/flvtool2/default.nix @@ -1,28 +1,15 @@ -{ stdenv, fetchurl, ruby }: +{ buildRubyGem, lib, ruby_2_2 }: -stdenv.mkDerivation rec { - name = "flvtool2-1.0.6"; - - src = fetchurl { - url = "http://rubyforge.org/frs/download.php/17497/${name}.tgz"; - sha256 = "1pbsf0fvqrs6xzfkqal020bplb68dfiz6c5sfcz36k255v7c5w9a"; - }; - - buildInputs = [ ruby ]; - - configurePhase = - '' - substituteInPlace bin/flvtool2 --replace "/usr/bin/env ruby" "ruby -I$out/lib/ruby/site_ruby/1.8" - ruby setup.rb config --prefix=$out --siterubyver=$out/lib/ruby/site_ruby/1.8 - ''; - - installPhase = - '' - ruby setup.rb install - ''; +buildRubyGem rec { + ruby = ruby_2_2; + name = "${gemName}-${version}"; + gemName = "flvtool2"; + version = "1.0.6"; + sha256 = "0xsla1061pi4ryh3jbvwsbs8qchprchbqjy7652g2g64v37i74qj"; meta = { - homepage = http://www.inlet-media.de/flvtool2/; + homepage = https://github.com/unnu/flvtool2; description = "A tool to manipulate Macromedia Flash Video files"; + platforms = ruby.meta.platforms; }; } |