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
-
{ lib, stdenv, fetchurl, glib, intltool, menu-cache, pango, pkg-config, vala
0
0
0
0
0
0
0
0
2
, extraOnly ? false
3
-
, withGtk3 ? false, gtk2, gtk3 }:
0
4
let
5
gtk = if withGtk3 then gtk3 else gtk2;
6
inherit (lib) optional;
7
in
8
stdenv.mkDerivation rec {
9
-
name = if extraOnly
10
-
then "libfm-extra-${version}"
11
-
else "libfm-${version}";
12
version = "1.3.2";
13
14
src = fetchurl {
···
17
};
18
19
nativeBuildInputs = [ vala pkg-config intltool ];
20
-
buildInputs = [ glib gtk pango ] ++ optional (!extraOnly) menu-cache;
0
21
22
-
configureFlags = [
23
-
"--sysconfdir=/etc"
24
-
] ++ optional extraOnly "--with-extra-only"
25
-
++ optional withGtk3 "--with-gtk=3";
26
27
-
installFlags = [
28
-
"sysconfdir=${placeholder "out"}/etc"
29
-
];
30
31
# libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm
32
postInstall = optional (!extraOnly) ''
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchurl
4
+
, glib
5
+
, intltool
6
+
, menu-cache
7
+
, pango
8
+
, pkg-config
9
+
, vala
10
, extraOnly ? false
11
+
, withGtk3 ? true , gtk3, gtk2
12
+
}:
13
let
14
gtk = if withGtk3 then gtk3 else gtk2;
15
inherit (lib) optional;
16
in
17
stdenv.mkDerivation rec {
18
+
pname = if extraOnly
19
+
then "libfm-extra"
20
+
else "libfm";
21
version = "1.3.2";
22
23
src = fetchurl {
···
26
};
27
28
nativeBuildInputs = [ vala pkg-config intltool ];
29
+
buildInputs = [ glib gtk pango ]
30
+
++ optional (!extraOnly) menu-cache;
31
32
+
configureFlags = [ "--sysconfdir=/etc" ]
33
+
++ optional extraOnly "--with-extra-only"
34
+
++ optional withGtk3 "--with-gtk=3";
0
35
36
+
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
0
0
37
38
# libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm
39
postInstall = optional (!extraOnly) ''