forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ha / hayabusa / package.nix
blob4c30a16cd468fb7c864c2f970f7569cdcd9c37db
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , vulkan-loader
7 }:
9 rustPlatform.buildRustPackage {
10   pname = "hayabusa";
11   version = "unstable-2023-11-29";
13   src = fetchFromGitHub {
14     owner = "notarin";
15     repo = "hayabusa";
16     rev = "306167c632173f6633e51c5610fe32af7718ec25";
17     hash = "sha256-e2zoVIhxcE9cUypi8Uzz3YZe2JvIaEVuWOGpqHVtxn8=";
18   };
20   cargoHash = "sha256-aoticMTrKZkRtjVXgdiBfyXJN3YcwBpM3yt07BBd3do=";
22   enableParallelBuilding = true;
24   nativeBuildInputs = [
25     pkg-config
26   ];
28   buildInputs = [
29     openssl
30     vulkan-loader
31   ];
33   postPatch = ''
34     substituteInPlace src/daemon/hayabusa.service \
35       --replace "/usr/local" "$out"
36   '';
38   postInstall = ''
39     install -Dm444 src/daemon/hayabusa.service -t $out/lib/systemd/system/
40   '';
42   meta = {
43     description = "Swift rust fetch program";
44     homepage = "https://github.com/notarin/hayabusa";
45     license = lib.licenses.cc-by-nc-nd-40;
46     maintainers = with lib.maintainers; [ ];
47     mainProgram = "hayabusa";
48     platforms = lib.platforms.linux;
49   };