about summary refs log tree commit diff
path: root/pkgs/development/libraries/ffms
diff options
context:
space:
mode:
authorndowens <ndowens04@gmail.com>2017-03-12 15:24:05 -0500
committerndowens <ndowens04@gmail.com>2017-03-12 15:24:05 -0500
commita7b6f2eee460d2a55a9474c78c89a62bdf1700d6 (patch)
tree48dab12bdd6fa80d7f92984b84b308b8d0d8f278 /pkgs/development/libraries/ffms
parent45cfd3969ae954da8b7f804df6e9ec2833c5eb7f (diff)
downloadnixlib-a7b6f2eee460d2a55a9474c78c89a62bdf1700d6.tar
nixlib-a7b6f2eee460d2a55a9474c78c89a62bdf1700d6.tar.gz
nixlib-a7b6f2eee460d2a55a9474c78c89a62bdf1700d6.tar.bz2
nixlib-a7b6f2eee460d2a55a9474c78c89a62bdf1700d6.tar.lz
nixlib-a7b6f2eee460d2a55a9474c78c89a62bdf1700d6.tar.xz
nixlib-a7b6f2eee460d2a55a9474c78c89a62bdf1700d6.tar.zst
nixlib-a7b6f2eee460d2a55a9474c78c89a62bdf1700d6.zip
ffms: 2.21 -> 2.22
Diffstat (limited to 'pkgs/development/libraries/ffms')
-rw-r--r--pkgs/development/libraries/ffms/default.nix27
1 files changed, 15 insertions, 12 deletions
diff --git a/pkgs/development/libraries/ffms/default.nix b/pkgs/development/libraries/ffms/default.nix
index 3fc3f37d2aad..5aa62a638fe8 100644
--- a/pkgs/development/libraries/ffms/default.nix
+++ b/pkgs/development/libraries/ffms/default.nix
@@ -1,23 +1,26 @@
-{ stdenv, fetchurl, zlib, ffmpeg, pkgconfig }:
+{ stdenv, fetchFromGitHub, zlib, ffmpeg, pkgconfig }:
 
 stdenv.mkDerivation rec {
-  name = "ffms-2.21";
+  name = "ffms-${version}";
+  version = "2.22";
 
-  src = fetchurl {
-    url = https://codeload.github.com/FFMS/ffms2/tar.gz/2.21;
-    name = "${name}.tar.gz";
-    sha256 = "00h2a5yhvr1qzbrzwbjv1ybxrx25lchgral6yxv36aaf4pi3rhn2";
+  src = fetchFromGitHub {
+    owner = "FFMS";
+    repo = "ffms2";
+    rev = version;
+    sha256 = "1ywcx1f3q533qfrbck5qhik3l617qhm062l8zixv02gnla7w6rkm";
   };
 
   NIX_CFLAGS_COMPILE = "-fPIC";
 
-  buildInputs = [ zlib ffmpeg pkgconfig ];
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ zlib ffmpeg ];
 
-  meta = {
-    homepage = http://code.google.com/p/ffmpegsource/;
+  meta = with stdenv.lib; {
+    homepage = http://github.com/FFMS/ffms2/;
     description = "Libav/ffmpeg based source library for easy frame accurate access";
-    license = stdenv.lib.licenses.mit;
-    maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
-    platforms = with stdenv.lib.platforms; unix;
+    license = licenses.mit;
+    maintainers = with maintainers; [ fuuzetsu ];
+    platforms = platforms.unix;
   };
 }