tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
feh: switch to finalAttrs pattern and format
gepbird.tngl.sh
2 years ago
73b6c4ae
34afff7c
verified
This commit was signed with the committer's
known signature
.
gepbird.tngl.sh
SSH Key Fingerprint:
SHA256:MP2UpIRtJpbFFqyucP431H/FPCfn58UhEUTro4lXtRs=
+21
-10
1 changed file
expand all
collapse all
unified
split
pkgs
applications
graphics
feh
default.nix
+21
-10
pkgs/applications/graphics/feh/default.nix
···
1
-
{ lib, stdenv, fetchFromGitHub, makeWrapper
2
-
, xorg, imlib2, libjpeg, libpng
3
-
, curl, libexif, jpegexiforient, perl
4
-
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
0
0
0
0
0
0
0
0
0
0
5
6
-
stdenv.mkDerivation rec {
7
pname = "feh";
8
version = "3.10.2";
9
10
src = fetchFromGitHub {
11
owner = "derf";
12
-
repo = pname;
13
-
rev = version;
14
hash = "sha256-378rhZhpcua3UbsY0OcGKGXdMIQCuG84YjJ9vfJhZVs=";
15
};
16
···
21
buildInputs = [ xorg.libXt xorg.libX11 xorg.libXinerama imlib2 libjpeg libpng curl libexif ];
22
23
makeFlags = [
24
-
"PREFIX=${placeholder "out"}" "exif=1"
0
25
] ++ lib.optional stdenv.isDarwin "verscmp=0"
26
-
++ lib.optional enableAutoreload "inotify=1";
27
28
installTargets = [ "install" ];
29
postInstall = ''
···
44
platforms = platforms.unix;
45
mainProgram = "feh";
46
};
47
-
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchFromGitHub
4
+
, makeWrapper
5
+
, xorg
6
+
, imlib2
7
+
, libjpeg
8
+
, libpng
9
+
, curl
10
+
, libexif
11
+
, jpegexiforient
12
+
, perl
13
+
, enableAutoreload ? !stdenv.hostPlatform.isDarwin
14
+
}:
15
16
+
stdenv.mkDerivation (finalAttrs: {
17
pname = "feh";
18
version = "3.10.2";
19
20
src = fetchFromGitHub {
21
owner = "derf";
22
+
repo = "feh";
23
+
rev = finalAttrs.version;
24
hash = "sha256-378rhZhpcua3UbsY0OcGKGXdMIQCuG84YjJ9vfJhZVs=";
25
};
26
···
31
buildInputs = [ xorg.libXt xorg.libX11 xorg.libXinerama imlib2 libjpeg libpng curl libexif ];
32
33
makeFlags = [
34
+
"PREFIX=${placeholder "out"}"
35
+
"exif=1"
36
] ++ lib.optional stdenv.isDarwin "verscmp=0"
37
+
++ lib.optional enableAutoreload "inotify=1";
38
39
installTargets = [ "install" ];
40
postInstall = ''
···
55
platforms = platforms.unix;
56
mainProgram = "feh";
57
};
58
+
})