Merge pull request #271073 from eclairevoyant/hayabusa
hayabusa: init at unstable-2023-11-29
This commit is contained in:
commit
45c08bb18a
1 changed files with 50 additions and 0 deletions
50
pkgs/by-name/ha/hayabusa/package.nix
Normal file
50
pkgs/by-name/ha/hayabusa/package.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue