nixos-config/pkgs/fastn/default.nix

43 lines
871 B
Nix
Raw Normal View History

2023-07-18 06:10:32 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
2024-06-20 06:32:08 +00:00
, cmake
2023-07-18 06:10:32 +00:00
, pkg-config
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "fastn";
2024-08-18 02:05:23 +00:00
version = "0.4.75";
2023-07-18 06:10:32 +00:00
src = fetchFromGitHub {
owner = "fastn-stack";
repo = pname;
rev = version;
2024-08-18 02:05:23 +00:00
hash = "sha256-8/0fOpZhboBJWN2sNrVD54uW3J3UPxGW9wil0UfdfuM=";
2023-07-18 06:10:32 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
2024-06-20 06:32:08 +00:00
"fastn-observer-0.1.0" = "sha256-D7ch6zB1xw54vGbpcQ3hf+zG11Le/Fy01W3kHhc8bOg=";
2023-07-18 06:10:32 +00:00
};
};
OPENSSL_NO_VENDOR = "1";
2024-06-20 06:32:08 +00:00
nativeBuildInputs = [ cmake pkg-config ];
2023-07-18 06:10:32 +00:00
buildInputs = [ openssl ];
checkFlags = [
"--skip=tests::fbt"
];
meta = with lib; {
homepage = "https://fastn.com/";
description = "An integrated development environment for FTD";
license = licenses.bsd3;
maintainers = with maintainers; [ foo-dogsquared ];
2024-08-18 02:05:23 +00:00
mainProgram = "fastn";
2023-07-18 06:10:32 +00:00
};
}