Skip to content

Commit

Permalink
add fission-server build (#2)
Browse files Browse the repository at this point in the history
* add fission-server build

* fix build
  • Loading branch information
walkah authored Feb 5, 2024
1 parent dd96488 commit 893e820
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cachix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ jobs:
name: fission-codes
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: 🏗️ Build
run: nix build .#homestar
run: |
nix build .#homestar
nix build .#fission-server
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pkgs/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ pkgs, fission, system, ... }: {
fission-server = pkgs.callPackage ./fission-server.nix { };
homestar = pkgs.callPackage ./homestar.nix { };

fission-cli = fission.packages.${system}.fission-cli;
fission-server = fission.packages.${system}.fission-server;
web-api = fission.packages.${system}.fission-server;
}
33 changes: 33 additions & 0 deletions pkgs/fission-server.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ darwin, fetchFromGitHub, lib, pkgs, rustPlatform, stdenv }:

rustPlatform.buildRustPackage rec {
pname = "fission-server";
version = "0.1.0";

src = fetchFromGitHub {
owner = "fission-codes";
repo = pname;
rev = "8985ae9c039e1d6c9c13a0c582aadbc258f6cba2";
hash = "sha256-4A5KCZAj8hqEdPrsn2ZKQMsHy27TtoQMm4M2RMgAsNI=";
};

buildInputs = with pkgs; [ openssl postgresql ] ++ lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks; [
CoreFoundation
Security
SystemConfiguration
]
);
nativeBuildInputs = with pkgs; [ pkg-config ];
OPENSSL_NO_VENDOR = 1;

cargoLock = {
lockFile = src + "/Cargo.lock";
outputHashes = {
"rexpect-0.5.0" = "sha256-njjXt4pbLV3Z/ZkBzmBxcwDSqpbOttIpdg+kHND1vSo=";
"rs-ucan-0.1.0" = "sha256-HSxIzqPECJ9KbPYU0aitjxpCf0CSDAv7su1PGxZlpHc=";
};
};

doCheck = false;
}

0 comments on commit 893e820

Please sign in to comment.