diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-11-29 19:47:07 -0500 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-12-02 09:56:26 -0500 |
commit | 40ffdaf0b69b88ff2efe611af631b954df194697 (patch) | |
tree | 3baec79400c0ee0ffa36ae231ab5a5333ff92ebb | |
parent | ef13e20509743a4a66d0b2bc20bcb923ba9de453 (diff) |
hayabusa: init at unstable-2023-11-29
-rw-r--r-- | pkgs/by-name/ha/hayabusa/package.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/ha/hayabusa/package.nix b/pkgs/by-name/ha/hayabusa/package.nix new file mode 100644 index 0000000000000..c8064e982c4c0 --- /dev/null +++ b/pkgs/by-name/ha/hayabusa/package.nix @@ -0,0 +1,50 @@ +{ 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="; + }; + + cargoHash = "sha256-aoticMTrKZkRtjVXgdiBfyXJN3YcwBpM3yt07BBd3do="; + + 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 = "A swift rust fetch program"; + homepage = "https://github.com/notarin/hayabusa"; + license = lib.licenses.cc-by-nc-nd-40; + maintainers = with lib.maintainers; [ eclairevoyant ]; + mainProgram = "hayabusa"; + platforms = lib.platforms.linux; + }; +} |