Skip to content

Commit 00d3697

Browse files
authored
fileshelter: 4.0.1 -> 6.2.0 (#400691)
2 parents b0a0c86 + 03931cd commit 00d3697

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

pkgs/by-name/fi/fileshelter/package.nix

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,57 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5-
autoreconfHook,
5+
cmake,
66
libzip,
77
boost,
8-
wt4,
8+
wt,
99
libconfig,
1010
pkg-config,
11+
libarchive,
1112
}:
1213

13-
stdenv.mkDerivation rec {
14+
stdenv.mkDerivation (finalAttrs: {
1415
pname = "fileshelter";
15-
version = "4.0.1";
16+
version = "6.2.0";
1617

1718
src = fetchFromGitHub {
1819
owner = "epoupon";
1920
repo = "fileshelter";
20-
rev = "v${version}";
21-
sha256 = "07n70wwqj7lqdxs3wya1m8bwg8l6lgmmlfpwyv3r3s4dfzb1b3ka";
21+
tag = "v${finalAttrs.version}";
22+
hash = "sha256-21ANNJB7rbGAdlS7ELyGAEIjvK8biFlH27yVHrLKpwY=";
2223
};
2324

25+
postPatch = ''
26+
sed -i '1i #include <algorithm>' src/fileshelter/ui/ShareCreateFormView.cpp
27+
'';
28+
2429
enableParallelBuilding = true;
2530

2631
nativeBuildInputs = [
27-
autoreconfHook
32+
cmake
2833
pkg-config
2934
];
35+
3036
buildInputs = [
3137
libzip
3238
boost
33-
wt4
39+
wt
3440
libconfig
41+
libarchive
3542
];
3643

3744
NIX_LDFLAGS = "-lpthread";
3845

3946
postInstall = ''
40-
ln -s ${wt4}/share/Wt/resources $out/share/fileshelter/docroot/resources
47+
ln -s ${wt}/share/Wt/resources $out/share/fileshelter/docroot/resources
4148
'';
4249

43-
meta = with lib; {
50+
meta = {
4451
homepage = "https://github.com/epoupon/fileshelter";
4552
description = "FileShelter is a 'one-click' file sharing web application";
4653
mainProgram = "fileshelter";
47-
maintainers = [ maintainers.willibutz ];
48-
license = licenses.gpl3;
54+
maintainers = [ lib.maintainers.willibutz ];
55+
license = lib.licenses.gpl3;
4956
platforms = [ "x86_64-linux" ];
5057
};
51-
}
58+
})

0 commit comments

Comments
 (0)