tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
omxplayer: switch to fetchFromGitHub, use postPatch
Sandro Jäckel
4 years ago
e814fd67
8eeb5acb
+14
-8
1 changed file
expand all
collapse all
unified
split
pkgs
applications
video
omxplayer
default.nix
+14
-8
pkgs/applications/video/omxplayer/default.nix
···
1
{ lib
2
, stdenv
0
3
, fetchurl
4
, raspberrypifw
5
, pcre
···
69
in
70
stdenv.mkDerivation rec {
71
pname = "omxplayer";
72
-
version = "20130328-fbee325dc2";
73
-
src = fetchurl {
74
-
url = "https://github.com/huceke/omxplayer/tarball/fbee325dc2";
75
-
name = "omxplayer-${version}.tar.gz";
0
0
76
sha256 = "0fkvv8il7ffqxki2gp8cxa5shh6sz9jsy5vv3f4025g4gss6afkg";
77
};
78
-
patchPhase = ''
0
79
sed -i 1d Makefile
80
export INCLUDES="-I${raspberrypifw}/include/interface/vcos/pthreads -I${raspberrypifw}/include/interface/vmcs_host/linux/"
81
'';
0
82
installPhase = ''
83
mkdir -p $out/bin
84
cp omxplayer.bin $out/bin
85
'';
0
86
buildInputs = [ raspberrypifw ffmpeg pcre boost freetype zlib ];
87
88
-
meta = {
89
homepage = "https://github.com/huceke/omxplayer";
90
description = "Commandline OMX player for the Raspberry Pi";
91
-
license = lib.licenses.gpl2Plus;
92
-
platforms = lib.platforms.arm;
93
};
94
}
···
1
{ lib
2
, stdenv
3
+
, fetchFromGitHub
4
, fetchurl
5
, raspberrypifw
6
, pcre
···
70
in
71
stdenv.mkDerivation rec {
72
pname = "omxplayer";
73
+
version = "unstable-2013-03-28";
74
+
75
+
src = fetchFromGitHub {
76
+
owner = "huceke";
77
+
repo = "omxplayer";
78
+
rev = "fbee325dc20441138d04d8d2022ad85956302e97";
79
sha256 = "0fkvv8il7ffqxki2gp8cxa5shh6sz9jsy5vv3f4025g4gss6afkg";
80
};
81
+
82
+
postPatch = ''
83
sed -i 1d Makefile
84
export INCLUDES="-I${raspberrypifw}/include/interface/vcos/pthreads -I${raspberrypifw}/include/interface/vmcs_host/linux/"
85
'';
86
+
87
installPhase = ''
88
mkdir -p $out/bin
89
cp omxplayer.bin $out/bin
90
'';
91
+
92
buildInputs = [ raspberrypifw ffmpeg pcre boost freetype zlib ];
93
94
+
meta = with lib; {
95
homepage = "https://github.com/huceke/omxplayer";
96
description = "Commandline OMX player for the Raspberry Pi";
97
+
license = licenses.gpl2Plus;
98
+
platforms = platforms.arm;
99
};
100
}