git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #5656 from nckx/boxfs2

Add boxfs: FUSE file system for box.com accounts

commit5bc68e1a0ee8ff5f6670c62567679dfbf7ea4052 authorlethalman <lucabru@src.gnome.org> dateFri 9 Jan 2015, 15:39 (12 years ago) parent4cf52dfbec3dd5
2 files changed+57
pkgs/tools/filesystems/boxfs/default.nix+55 pkgs/top-level/all-packages.nix+2
pkgs/tools/filesystems/boxfs/default.nixnew file+55
@@ -0,0 +1,55 @@
1+{ stdenv, fetchgit, curl, fuse, libxml2, pkgconfig }:
2+
3+let
4+ version = "2-20150109";
5+ srcs = {
6+ boxfs2 = fetchgit {
7+ url = git://github.com/drotiro/boxfs2.git;
8+ rev = "d7018b0546d2dae956ae3da3fb95d2f63fa6d3ff";
9+ sha256 = "c22402373589221371f32ec9c86813d5d41aeb1f3a8e2004019019af2f1d8785";
10+ };
11+ libapp = fetchgit {
12+ url = git://github.com/drotiro/libapp.git;
13+ rev = "febebe2bc0fb88d57bdf4eb4a2a54c9eeda3f3d8";
14+ sha256 = "dbae0e80cd926a45dcf267d33ed03434b377c758a4d1d556f39f7f17255a650e";
15+ };
16+ libjson = fetchgit {
17+ url = git://github.com/vincenthz/libjson.git;
18+ rev = "75a7f50fca2c667bc5f32cdd6dd98f2b673f6657";
19+ sha256 = "7c1c71b2cc61dce06870d33f07f91bc2fccd3f1e3440bb5c30d41282dfd01aee";
20+ };
21+ };
22+in stdenv.mkDerivation {
23+ name = "boxfs-${version}";
24+
25+ src = srcs.boxfs2;
26+ prePatch = with srcs; ''
27+ substituteInPlace Makefile --replace "git pull" "true"
28+ cp -a --no-preserve=mode ${libapp} libapp
29+ cp -a --no-preserve=mode ${libjson} libjson
30+ '';
31+
32+ buildInputs = [ curl fuse libxml2 pkgconfig ];
33+
34+ buildFlags = "static";
35+
36+ installPhase = ''
37+ mkdir -p $out/bin
38+ install boxfs boxfs-init $out/bin
39+ '';
40+
41+ meta = with stdenv.lib; {
42+ description = "FUSE file system for box.com accounts";
43+ longDescription = ''
44+ Store files on box.com (an account is required). The first time you run
45+ boxfs, you will need to complete the authentication (oauth2) process and
46+ grant access to your box.com account. Just follow the instructions on
47+ the terminal and in your browser. When you've done using your files,
48+ unmount the file system with `fusermount -u mountpoint`.
49+ '';
50+ homepage = https://github.com/drotiro/boxfs2;
51+ license = with licenses; gpl3;
52+ platforms = with platforms; linux;
53+ maintainers = with maintainers; [ nckx ];
54+ };
55+}
pkgs/top-level/all-packages.nix+2
@@ -653,6 +653,8 @@ let
653653
654654 bootchart = callPackage ../tools/system/bootchart { };
655655
656+ boxfs = callPackage ../tools/filesystems/boxfs { };
657+
656658 bro = callPackage ../applications/networking/ids/bro { };
657659
658660 bsod = callPackage ../misc/emulators/bsod { };