tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libfm: change upstream source
Sigmanificient
5 months ago
12683a1a
3c2a77a5
+10
-9
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
li
libfm
package.nix
+10
-9
pkgs/by-name/li/libfm/package.nix
···
1
1
{
2
2
lib,
3
3
stdenv,
4
4
-
fetchurl,
4
4
+
fetchFromGitHub,
5
5
fetchpatch,
6
6
+
autoreconfHook,
7
7
+
gtk-doc,
6
8
glib,
7
9
intltool,
8
10
menu-cache,
···
23
25
pname = if extraOnly then "libfm-extra" else "libfm";
24
26
version = "1.3.2";
25
27
26
26
-
src = fetchurl {
27
27
-
url = "mirror://sourceforge/pcmanfm/libfm-${finalAttrs.version}.tar.xz";
28
28
-
sha256 = "sha256-pQQmMDBM+OXYz/nVZca9VG8ii0jJYBU+02ajTofK0eU=";
28
28
+
src = fetchFromGitHub {
29
29
+
owner = "lxde";
30
30
+
repo = "libfm";
31
31
+
tag = finalAttrs.version;
32
32
+
hash = "sha256-SQHV4kv8Fz24x7g2G8qc+uJR9qeN1Ez1KHnKK9YULY0=";
29
33
};
30
34
31
35
patches = [
···
37
41
];
38
42
39
43
nativeBuildInputs = [
44
44
+
autoreconfHook
40
45
vala
41
46
pkg-config
42
47
intltool
48
48
+
gtk-doc
43
49
];
44
50
buildInputs = [
45
51
glib
···
55
61
++ optional withGtk3 "--with-gtk=3";
56
62
57
63
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
58
58
-
59
59
-
postPatch = ''
60
60
-
# Ensure the files are re-generated from Vala sources.
61
61
-
rm src/actions/*.c
62
62
-
'';
63
64
64
65
# libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm
65
66
postInstall = optionalString (!extraOnly) ''