recipes.nix/packages/autobrr/default.nix
Adithya Nair dee0348c05
Some checks failed
Build and Push to Cachix / Push to Binary Cache (X86-64) (push) Failing after 1m5s
Build and Push to Cachix / Push to Binary Cache (aarch64) (push) Successful in 16m4s
initial commit
2024-11-03 19:11:03 +05:30

28 lines
730 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, callPackage
, nodejs
, pnpm
}:
let
inherit (import ./sources.nix { inherit fetchFromGitHub; }) pname version src vendorHash;
web = callPackage ./web.nix { inherit nodejs pnpm fetchFromGitHub; };
in
buildGoModule rec {
inherit pname version src vendorHash;
ldflags = [ "-s" "-w" "-X main.commit=${src.rev}" "-X main.tag=${version}" ];
postPatch = ''
cp -r ${web}/share/autobrr-web/* web/dist/
'';
meta = {
description = "Modern, easy to use download automation for torrents and usenet";
homepage = "https://github.com/autobrr/autobrr";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ adtya ];
mainProgram = "autobrr";
};
}