Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3507225
D5727.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D5727.diff
View Options
diff --git a/nix/blob.nix b/nix/blob.nix
new file mode 100644
--- /dev/null
+++ b/nix/blob.nix
@@ -0,0 +1,34 @@
+{ stdenv
+, lib
+, rustPlatform
+, fetchFromGitHub
+, protobuf_3_15_cmake
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "blob";
+ version = "0.0.1";
+
+ src = ../services/blob;
+
+ cargoLock.lockFile = ../services/blob/Cargo.lock;
+
+ prePatch = ''
+ mkdir ../../shared
+ cp -r ${../shared/protos} ../../shared/protos
+ '';
+
+ nativeBuildInputs = [
+ protobuf_3_15_cmake
+ ];
+
+ buildInputs = lib.optionals stdenv.isDarwin [
+ darwin.apple_sdk.frameworks.Security
+ darwin.libiconv
+ ];
+
+ meta = with lib; {
+ license = licenses.bsd3;
+ };
+}
diff --git a/nix/overlay.nix b/nix/overlay.nix
--- a/nix/overlay.nix
+++ b/nix/overlay.nix
@@ -49,6 +49,8 @@
nativeBuildInputs = (o.nativeBuildInputs or []) ++ [ prev.cmake ];
});
+ comm-blob = final.callPackage ./blob.nix { };
+
protobuf_3_15_cmake = prev.callPackage ./protobuf_3_15.nix { };
devShells.default = final.callPackage ./dev-shell.nix { };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 7:49 PM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2688899
Default Alt Text
D5727.diff (1 KB)
Attached To
Mode
D5727: [Nix] Package blob
Attached
Detach File
Event Timeline
Log In to Comment