mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
972 B
Nix
45 lines
972 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, glib
|
|
, intltool
|
|
, libfm
|
|
, libX11
|
|
, pango
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, adwaita-icon-theme
|
|
, withGtk3 ? true
|
|
, gtk2
|
|
, gtk3
|
|
}:
|
|
|
|
let
|
|
libfm' = libfm.override { inherit withGtk3; };
|
|
gtk = if withGtk3 then gtk3 else gtk2;
|
|
inherit (lib) optional;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "pcmanfm";
|
|
version = "1.3.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pcmanfm/pcmanfm-${version}.tar.xz";
|
|
sha256 = "sha256-FMt7JHSTxMzmX7tZAmEeOtAKeocPvB5QrcUEKMUUDPc=";
|
|
};
|
|
|
|
buildInputs = [ glib gtk libfm' libX11 pango adwaita-icon-theme ];
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 intltool ];
|
|
|
|
configureFlags = optional withGtk3 "--with-gtk=3";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://blog.lxde.org/category/pcmanfm/";
|
|
license = licenses.gpl2Plus;
|
|
description = "File manager with GTK interface";
|
|
maintainers = [ maintainers.ttuegel ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "pcmanfm";
|
|
};
|
|
}
|