Skip to content

Commit

Permalink
libfm: use finalAttrs pattern and remove with lib;
Browse files Browse the repository at this point in the history
  • Loading branch information
stepbrobd committed Jan 7, 2025
1 parent d17d7cc commit bfcf770
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkgs/by-name/li/libfm/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch,
glib,
intltool,
menu-cache,
Expand All @@ -18,12 +19,12 @@ let
gtk = if withGtk3 then gtk3 else gtk2;
inherit (lib) optional optionalString;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = if extraOnly then "libfm-extra" else "libfm";
version = "1.3.2";

src = fetchurl {
url = "mirror://sourceforge/pcmanfm/libfm-${version}.tar.xz";
url = "mirror://sourceforge/pcmanfm/libfm-${finalAttrs.version}.tar.xz";
sha256 = "sha256-pQQmMDBM+OXYz/nVZca9VG8ii0jJYBU+02ajTofK0eU=";
};

Expand Down Expand Up @@ -59,12 +60,12 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

meta = with lib; {
meta = {
broken = stdenv.hostPlatform.isDarwin;
homepage = "https://blog.lxde.org/category/pcmanfm/";
license = licenses.lgpl21Plus;
license = lib.licenses.lgpl21Plus;
description = "Glib-based library for file management";
maintainers = [ maintainers.ttuegel ];
platforms = platforms.linux ++ platforms.darwin;
maintainers = with lib.maintainers; [ ttuegel ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}
})

0 comments on commit bfcf770

Please sign in to comment.