git.iko.soy/typeable/nixpkgs
on master help sign in
flvtool2: fix installation

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

commit74c69387db1531783f4256b397d90bc16f24a0db authorzimbatm <zimbatm@zimbatm.com> dateTue 8 Mar 2016, 10:55 (11 years ago) parent2634885
1 file changed+9−22
pkgs/tools/video/flvtool2/default.nix+9−22
pkgs/tools/video/flvtool2/default.nix+9−22
@@ -1,28 +1,15 @@
1−{ stdenv, fetchurl, ruby }:
1+{ buildRubyGem, lib, ruby_2_2 }:
22
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";
239
2410 meta = {
25− homepage = http://www.inlet-media.de/flvtool2/;
11+ homepage = https://github.com/unnu/flvtool2;
2612 description = "A tool to manipulate Macromedia Flash Video files";
13+ platforms = ruby.meta.platforms;
2714 };
2815}