pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / gn / gnome-commander / package.nix
blob4de7e5f1e0515dbc6be61b88e5f241c9923f97fd
2   lib,
3   stdenv,
4   fetchFromGitLab,
5   meson,
6   ninja,
7   pkg-config,
8   flex,
9   itstool,
10   rustPlatform,
11   rustc,
12   cargo,
13   wrapGAppsHook4,
14   desktop-file-utils,
15   exiv2,
16   libgsf,
17   taglib,
18   poppler,
19   samba,
20   gtest,
23 stdenv.mkDerivation (finalAttrs: {
24   pname = "gnome-commander";
25   version = "1.18.1-unstable-2024-10-18";
27   src = fetchFromGitLab {
28     domain = "gitlab.gnome.org";
29     owner = "GNOME";
30     repo = "gnome-commander";
31     rev = "28dadb1ef9342bb1a5f9a65b1a5bf3bd80e3d30a";
32     hash = "sha256-DxsZJht+PD3vY5vc1vzpRD8FHBPKcjK4qfke5nhvHS0=";
33   };
35   # hard-coded schema paths
36   postPatch = ''
37     substituteInPlace src/gnome-cmd-data.cc plugins/fileroller/file-roller-plugin.cc \
38       --replace-fail \
39         '/share/glib-2.0/schemas' \
40         '/share/gsettings-schemas/${finalAttrs.finalPackage.name}/glib-2.0/schemas'
41   '';
43   cargoDeps = rustPlatform.fetchCargoTarball {
44     inherit (finalAttrs) pname version src;
45     hash = "sha256-Nx/e2H9NxCTj62xVDlKTpPdjlxAx2YAcQJh1kHByrd4=";
46   };
48   nativeBuildInputs = [
49     meson
50     ninja
51     pkg-config
52     flex
53     itstool
54     rustPlatform.cargoSetupHook
55     rustc
56     cargo
57     wrapGAppsHook4
58     desktop-file-utils
59   ];
61   buildInputs = [
62     exiv2
63     libgsf
64     taglib
65     poppler
66     samba
67     gtest
68   ];
70   meta = {
71     description = "Fast and powerful twin-panel file manager for the Linux desktop";
72     homepage = "https://gcmd.github.io";
73     license = lib.licenses.gpl2Plus;
74     mainProgram = "gnome-commander";
75     maintainers = with lib.maintainers; [ aleksana ];
76     platforms = lib.platforms.linux;
77   };