boxfs: drop
Depends on unsupported fuse2 and unmaintained upstream.
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
diff --git a/libapp/libapp/app.c b/libapp/libapp/app.c
|
||||
index 0188795..f9f1cfa 100644
|
||||
--- a/libapp/libapp/app.c
|
||||
+++ b/libapp/libapp/app.c
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "app.h"
|
||||
|
||||
+#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <libgen.h>
|
||||
@@ -1,81 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
curl,
|
||||
fuse,
|
||||
libxml2,
|
||||
pkg-config,
|
||||
}:
|
||||
|
||||
let
|
||||
srcs = {
|
||||
boxfs2 = fetchFromGitHub {
|
||||
sha256 = "10af1l3sjnh25shmq5gdnpyqk4vrq7i1zklv4csf1n2nrahln8j8";
|
||||
rev = "d7018b0546d2dae956ae3da3fb95d2f63fa6d3ff";
|
||||
repo = "boxfs2";
|
||||
owner = "drotiro";
|
||||
};
|
||||
libapp = fetchFromGitHub {
|
||||
sha256 = "1p2sbxiranan2n2xsfjkp3c6r2vcs57ds6qvjv4crs1yhxr7cp00";
|
||||
rev = "febebe2bc0fb88d57bdf4eb4a2a54c9eeda3f3d8";
|
||||
repo = "libapp";
|
||||
owner = "drotiro";
|
||||
};
|
||||
libjson = fetchFromGitHub {
|
||||
sha256 = "1vhss3gq44nl61fbnh1l3qzwvz623gwhfgykf1lf1p31rjr7273w";
|
||||
rev = "75a7f50fca2c667bc5f32cdd6dd98f2b673f6657";
|
||||
repo = "libjson";
|
||||
owner = "vincenthz";
|
||||
};
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "boxfs";
|
||||
version = "2-20150109";
|
||||
|
||||
src = srcs.boxfs2;
|
||||
|
||||
prePatch = with srcs; ''
|
||||
substituteInPlace Makefile --replace "git pull" "true"
|
||||
cp -a --no-preserve=mode ${libapp} libapp
|
||||
cp -a --no-preserve=mode ${libjson} libjson
|
||||
'';
|
||||
patches = [
|
||||
./work-around-API-borkage.patch
|
||||
./libapp-include-ctype.diff
|
||||
./use-stdbool.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
curl
|
||||
fuse
|
||||
libxml2
|
||||
];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildFlags = [
|
||||
"static"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin "CFLAGS=-D_BSD_SOURCE";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install boxfs boxfs-init $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "FUSE file system for box.com accounts";
|
||||
longDescription = ''
|
||||
Store files on box.com (an account is required). The first time you run
|
||||
boxfs, you will need to complete the authentication (oauth2) process and
|
||||
grant access to your box.com account. Just follow the instructions on
|
||||
the terminal and in your browser. When you've done using your files,
|
||||
unmount the file system with `fusermount -u mountpoint`.
|
||||
'';
|
||||
homepage = "https://github.com/drotiro/boxfs2";
|
||||
license = lib.licenses.gpl3;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
diff --git a/tmp/orig_base.h b/libapp/libapp/base.h
|
||||
index 7d8abdb..2f42b03 100644
|
||||
--- a/tmp/orig_base.h
|
||||
+++ b/libapp/libapp/base.h
|
||||
@@ -1,12 +1,7 @@
|
||||
#ifndef APP_BASE_H
|
||||
#define APP_BASE_H
|
||||
|
||||
-#ifndef __cplusplus
|
||||
-typedef enum {
|
||||
- false = 0,
|
||||
- true = 1
|
||||
-} bool;
|
||||
-#endif
|
||||
+#include <stdbool.h>
|
||||
|
||||
#define ASSERT(clause) if( !clause) { fprintf(stderr, "Assertion '%s' failed at %s:%d\n", #clause, __FILE__, __LINE__ ); exit(-1); }
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
diff --git a/boxapi.c b/boxapi.c
|
||||
index 4964273..e4b7404 100644
|
||||
--- a/boxapi.c
|
||||
+++ b/boxapi.c
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include <libxml/hash.h>
|
||||
+#include <libxml/parser.h>
|
||||
|
||||
#include <libapp/app.h>
|
||||
/* Building blocks for OpenBox api endpoints
|
||||
@@ -38,8 +39,8 @@
|
||||
// AUTH
|
||||
#define API_KEY_VAL "f9ss11y2w0hg5r04jsidxlhk4pil28cf"
|
||||
#define API_SECRET "r3ZHAIhsOL2FoHjgERI9xf74W5skIM0w"
|
||||
-#define API_OAUTH_URL "https://app.box.com/api/oauth2/" //"https://www.box.com/api/oauth2/"
|
||||
-#define API_OAUTH_AUTHORIZE API_OAUTH_URL "authorize?response_type=code&client_id=" API_KEY_VAL /*"&redirect_uri=http%3A//localhost"*/
|
||||
+#define API_OAUTH_URL "https://api.box.com/oauth2/" //"https://www.box.com/api/oauth2/"
|
||||
+#define API_OAUTH_AUTHORIZE "https://app.box.com/api/oauth2/authorize?response_type=code&client_id=" API_KEY_VAL /*"&redirect_uri=http%3A//localhost"*/
|
||||
#define API_OAUTH_TOKEN API_OAUTH_URL "token"
|
||||
// CALLS
|
||||
#define API_ENDPOINT "https://api.box.com/2.0/"
|
||||
@@ -405,6 +405,7 @@ mapAliases {
|
||||
boost177 = throw "Boost 1.77 has been removed as it is obsolete and no longer used by anything in Nixpkgs"; # Added 2026-04-20
|
||||
botan2 = throw "botan2 has been removed as it is EOL"; # Added 2025-10-20
|
||||
bower2nix = throw "bower2nix has been removed as bower was removed. It is recommended to migrate to yarn."; # Added 2025-09-17
|
||||
boxfs = throw "'boxfs' has been removed, as it depends on unsupported fuse2 and unmaintained upstream"; # Added 2026-05-30
|
||||
brasero-original = throw "'brasero-original' has been renamed to/replaced by 'brasero-unwrapped'"; # Converted to throw 2025-10-27
|
||||
breads-ad = throw "'breads-ad' has been removed because its source is no longer available"; # Added 2025-12-20
|
||||
break-time = throw "'break-time' has been removed because it is not maintained upstream and has insecure dependencies."; # Added 2025-12-01
|
||||
|
||||
Reference in New Issue
Block a user