libfm: change upstream source

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