tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ffcast: fix cross-compilation
Nikolay Korotkiy
3 years ago
70f25ecb
16478032
+19
-9
1 changed file
expand all
collapse all
unified
split
pkgs
tools
X11
ffcast
default.nix
+19
-9
pkgs/tools/X11/ffcast/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, autoreconfHook, perl, libX11 }:
1
1
+
{ lib, stdenv, fetchFromGitHub, autoreconfHook, makeWrapper, perl
2
2
+
, ffmpeg, imagemagick, xdpyinfo, xprop, xrectsel, xwininfo
3
3
+
}:
2
4
3
5
stdenv.mkDerivation rec {
4
6
pname = "ffcast";
5
7
version = "2.5.0";
6
8
7
9
src = fetchFromGitHub {
8
8
-
owner = "lolilolicon";
10
10
+
owner = "ropery";
9
11
repo = "FFcast";
10
12
rev = version;
11
13
sha256 = "047y32bixhc8ksr98vwpgd0k1xxgsv2vs0n3kc2xdac4krc9454h";
12
14
};
13
15
14
14
-
nativeBuildInputs = [ autoreconfHook ];
15
15
-
buildInputs = [ perl libX11 ];
16
16
+
nativeBuildInputs = [ autoreconfHook makeWrapper perl /*for pod2man*/ ];
16
17
17
18
configureFlags = [ "--disable-xrectsel" ];
18
19
19
19
-
postBuild = ''
20
20
-
make install
20
20
+
postInstall = let
21
21
+
binPath = lib.makeBinPath [
22
22
+
ffmpeg
23
23
+
imagemagick
24
24
+
xdpyinfo
25
25
+
xprop
26
26
+
xrectsel
27
27
+
xwininfo
28
28
+
];
29
29
+
in ''
30
30
+
wrapProgram $out/bin/ffcast --prefix PATH : ${binPath}
21
31
'';
22
32
23
33
meta = with lib; {
24
34
description = "Run commands on rectangular screen regions";
25
25
-
homepage = "https://github.com/lolilolicon/FFcast";
26
26
-
license = licenses.gpl3;
27
27
-
maintainers = [ maintainers.guyonvarch ];
35
35
+
homepage = "https://github.com/ropery/FFcast";
36
36
+
license = licenses.gpl3Plus;
37
37
+
maintainers = with maintainers; [ sikmir ];
28
38
platforms = platforms.linux;
29
39
};
30
40
}