nixos-config/pkgs/fastn/default.nix

31 lines
872 B
Nix
Raw Normal View History

2025-01-15 06:00:12 +00:00
{ lib, rustPlatform, fetchFromGitHub, cmake, pkg-config, openssl }:
2023-07-18 06:10:32 +00:00
2025-03-14 04:47:48 +00:00
rustPlatform.buildRustPackage (finalAttrs: {
2023-07-18 06:10:32 +00:00
pname = "fastn";
2025-03-14 04:47:48 +00:00
version = "0.4.99";
2023-07-18 06:10:32 +00:00
src = fetchFromGitHub {
owner = "fastn-stack";
2025-03-14 04:47:48 +00:00
repo = finalAttrs.pname;
rev = finalAttrs.version;
hash = "sha256-oomlLE0lha1b9N7CvQKsvlvcLZ8+f5aWjTWqzzgBDUk=";
2023-07-18 06:10:32 +00:00
};
2025-03-14 04:47:48 +00:00
cargoHash = "sha256-6WXhxHDqlPJLBgG2VkEQgMV58s6MiAAhQkLQOPBtqpo=";
cargoBuildFeatures = [ "edition2024" ];
useFetchCargoVendor = true;
2023-07-18 06:10:32 +00:00
2025-03-14 04:47:48 +00:00
nativeBuildInputs = [ rustPlatform.bindgenHook cmake pkg-config ];
2023-07-18 06:10:32 +00:00
buildInputs = [ openssl ];
2025-01-15 06:00:12 +00:00
checkFlags = [ "--skip=tests::fbt" ];
2023-07-18 06:10:32 +00:00
meta = with lib; {
homepage = "https://fastn.com/";
description = "An integrated development environment for FTD";
2024-11-13 05:13:12 +00:00
license = licenses.agpl3Plus;
2023-07-18 06:10:32 +00:00
maintainers = with maintainers; [ foo-dogsquared ];
2024-08-18 02:05:23 +00:00
mainProgram = "fastn";
2023-07-18 06:10:32 +00:00
};
2025-03-14 04:47:48 +00:00
})