tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libfm: cosmetic changes
AndersonTorres
5 years ago
3dcc51a6
c22b718a
+20
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libfm
default.nix
+20
-13
pkgs/development/libraries/libfm/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, glib, intltool, menu-cache, pango, pkg-config, vala
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchurl
4
4
+
, glib
5
5
+
, intltool
6
6
+
, menu-cache
7
7
+
, pango
8
8
+
, pkg-config
9
9
+
, vala
2
10
, extraOnly ? false
3
3
-
, withGtk3 ? false, gtk2, gtk3 }:
11
11
+
, withGtk3 ? true , gtk3, gtk2
12
12
+
}:
4
13
let
5
14
gtk = if withGtk3 then gtk3 else gtk2;
6
15
inherit (lib) optional;
7
16
in
8
17
stdenv.mkDerivation rec {
9
9
-
name = if extraOnly
10
10
-
then "libfm-extra-${version}"
11
11
-
else "libfm-${version}";
18
18
+
pname = if extraOnly
19
19
+
then "libfm-extra"
20
20
+
else "libfm";
12
21
version = "1.3.2";
13
22
14
23
src = fetchurl {
···
17
26
};
18
27
19
28
nativeBuildInputs = [ vala pkg-config intltool ];
20
20
-
buildInputs = [ glib gtk pango ] ++ optional (!extraOnly) menu-cache;
29
29
+
buildInputs = [ glib gtk pango ]
30
30
+
++ optional (!extraOnly) menu-cache;
21
31
22
22
-
configureFlags = [
23
23
-
"--sysconfdir=/etc"
24
24
-
] ++ optional extraOnly "--with-extra-only"
25
25
-
++ optional withGtk3 "--with-gtk=3";
32
32
+
configureFlags = [ "--sysconfdir=/etc" ]
33
33
+
++ optional extraOnly "--with-extra-only"
34
34
+
++ optional withGtk3 "--with-gtk=3";
26
35
27
27
-
installFlags = [
28
28
-
"sysconfdir=${placeholder "out"}/etc"
29
29
-
];
36
36
+
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
30
37
31
38
# libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm
32
39
postInstall = optional (!extraOnly) ''