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
1
-
{ lib, stdenv, fetchFromGitHub, makeWrapper
2
2
-
, xorg, imlib2, libjpeg, libpng
3
3
-
, curl, libexif, jpegexiforient, perl
4
4
-
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, makeWrapper
5
5
+
, xorg
6
6
+
, imlib2
7
7
+
, libjpeg
8
8
+
, libpng
9
9
+
, curl
10
10
+
, libexif
11
11
+
, jpegexiforient
12
12
+
, perl
13
13
+
, enableAutoreload ? !stdenv.hostPlatform.isDarwin
14
14
+
}:
5
15
6
6
-
stdenv.mkDerivation rec {
16
16
+
stdenv.mkDerivation (finalAttrs: {
7
17
pname = "feh";
8
18
version = "3.10.2";
9
19
10
20
src = fetchFromGitHub {
11
21
owner = "derf";
12
12
-
repo = pname;
13
13
-
rev = version;
22
22
+
repo = "feh";
23
23
+
rev = finalAttrs.version;
14
24
hash = "sha256-378rhZhpcua3UbsY0OcGKGXdMIQCuG84YjJ9vfJhZVs=";
15
25
};
16
26
···
21
31
buildInputs = [ xorg.libXt xorg.libX11 xorg.libXinerama imlib2 libjpeg libpng curl libexif ];
22
32
23
33
makeFlags = [
24
24
-
"PREFIX=${placeholder "out"}" "exif=1"
34
34
+
"PREFIX=${placeholder "out"}"
35
35
+
"exif=1"
25
36
] ++ lib.optional stdenv.isDarwin "verscmp=0"
26
26
-
++ lib.optional enableAutoreload "inotify=1";
37
37
+
++ lib.optional enableAutoreload "inotify=1";
27
38
28
39
installTargets = [ "install" ];
29
40
postInstall = ''
···
44
55
platforms = platforms.unix;
45
56
mainProgram = "feh";
46
57
};
47
47
-
}
58
58
+
})