generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuse-zip.nix
48 lines (41 loc) · 1003 Bytes
/
fuse-zip.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, stdenv
, fetchFromBitbucket
, fuse
, pkg-config
, libzip
}:
stdenv.mkDerivation rec {
pname = "fuse-zip";
version = "0.7.2";
# https://bitbucket.org/agalanin/fuse-zip
# https://github.com/refi64/fuse-zip
# https://github.com/milahu/fuse-zip
src = fetchFromBitbucket {
owner = "agalanin";
repo = "fuse-zip";
rev = version;
hash = "sha256-o1OEOAmo0r/qUyKTgpvJe2XDWgpvash2+oyqdiEq2a8=";
};
makeFlags = [
"_FILE_OFFSET_BITS=64"
];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
fuse
libzip
];
# fix: warning _FORTIFY_SOURCE requires compiling with optimization (-O)
# fix: mkdir: cannot create directory '/usr': Permission denied
postPatch = ''
find . -name Makefile | xargs sed -i "s/ -O0 / /; s|^prefix=/usr/local$|prefix=$out|"
'';
meta = with lib; {
description = "";
homepage = "https://bitbucket.org/agalanin/fuse-zip";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
};
}