Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-29 19:47:07 -05:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
vulkan-loader,
}:
rustPlatform.buildRustPackage {
pname = "hayabusa";
version = "unstable-2023-11-29";
src = fetchFromGitHub {
owner = "notarin";
repo = "hayabusa";
rev = "306167c632173f6633e51c5610fe32af7718ec25";
hash = "sha256-e2zoVIhxcE9cUypi8Uzz3YZe2JvIaEVuWOGpqHVtxn8=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-wWJIZRiDK32uGroIG36QvRSvPw18nFGfp7OI7VNhCWE=";
2023-11-29 19:47:07 -05:00
enableParallelBuilding = true;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
vulkan-loader
];
postPatch = ''
substituteInPlace src/daemon/hayabusa.service \
--replace "/usr/local" "$out"
'';
postInstall = ''
install -Dm444 src/daemon/hayabusa.service -t $out/lib/systemd/system/
'';
meta = {
description = "Swift rust fetch program";
homepage = "https://github.com/notarin/hayabusa";
license = lib.licenses.cc-by-nc-nd-40;
2024-09-10 15:02:41 -04:00
maintainers = with lib.maintainers; [ ];
2023-11-29 19:47:07 -05:00
mainProgram = "hayabusa";
platforms = lib.platforms.linux;
};
}