Skip to content

Commit b4c90d3

Browse files
authored
gnome-commander: init at 1.18.1-unstable-2024-10-18 (#350231)
2 parents a60d8c9 + f32ef08 commit b4c90d3

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
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,
21+
}:
22+
23+
stdenv.mkDerivation (finalAttrs: {
24+
pname = "gnome-commander";
25+
version = "1.18.1-unstable-2024-10-18";
26+
27+
src = fetchFromGitLab {
28+
domain = "gitlab.gnome.org";
29+
owner = "GNOME";
30+
repo = "gnome-commander";
31+
rev = "28dadb1ef9342bb1a5f9a65b1a5bf3bd80e3d30a";
32+
hash = "sha256-DxsZJht+PD3vY5vc1vzpRD8FHBPKcjK4qfke5nhvHS0=";
33+
};
34+
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+
'';
42+
43+
cargoDeps = rustPlatform.fetchCargoTarball {
44+
inherit (finalAttrs) pname version src;
45+
hash = "sha256-Nx/e2H9NxCTj62xVDlKTpPdjlxAx2YAcQJh1kHByrd4=";
46+
};
47+
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+
];
60+
61+
buildInputs = [
62+
exiv2
63+
libgsf
64+
taglib
65+
poppler
66+
samba
67+
gtest
68+
];
69+
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+
};
78+
})

0 commit comments

Comments
 (0)