libfm: change upstream source

+10 -9
+10 -9
pkgs/by-name/li/libfm/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 4 + fetchFromGitHub, 5 5 fetchpatch, 6 + autoreconfHook, 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 - src = fetchurl { 27 - url = "mirror://sourceforge/pcmanfm/libfm-${finalAttrs.version}.tar.xz"; 28 - sha256 = "sha256-pQQmMDBM+OXYz/nVZca9VG8ii0jJYBU+02ajTofK0eU="; 28 + src = fetchFromGitHub { 29 + owner = "lxde"; 30 + repo = "libfm"; 31 + tag = finalAttrs.version; 32 + hash = "sha256-SQHV4kv8Fz24x7g2G8qc+uJR9qeN1Ez1KHnKK9YULY0="; 29 33 }; 30 34 31 35 patches = [ ··· 37 41 ]; 38 42 39 43 nativeBuildInputs = [ 44 + autoreconfHook 40 45 vala 41 46 pkg-config 42 47 intltool 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 - 59 - postPatch = '' 60 - # Ensure the files are re-generated from Vala sources. 61 - rm src/actions/*.c 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) ''