1 { stdenv, lib, buildGoModule, fetchFromGitHub, fetchzip }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-nKt/A1LIr+cPWASWFYiOebxsuWcbzd23CQ32GgnWvLA=";
14 vendorSha256 = "sha256-feQOrZmJ656yD3HsxnN8JFXoP/XM2Gobyzj5MHyH/Xw=";
17 name = "mutagen-agents-${version}";
18 # The package architecture does not matter since all packages contain identical mutagen-agents.tar.gz.
19 url = "https://github.com/mutagen-io/mutagen/releases/download/v${version}/mutagen_linux_amd64_v${version}.tar.gz";
22 rm $out/mutagen # Keep only mutagen-agents.tar.gz.
24 sha256 = "sha256-QkleSf/Npbqrx2049tKxxwJk+996gM5AU/BIoyplDYo=";
29 subPackages = [ "cmd/mutagen" "cmd/mutagen-agent" ];
32 install -d $out/libexec
33 ln -s ${agents}/mutagen-agents.tar.gz $out/libexec/
37 broken = stdenv.isDarwin;
38 description = "Make remote development work with your local tools";
39 homepage = "https://mutagen.io/";
40 changelog = "https://github.com/mutagen-io/mutagen/releases/tag/v${version}";
41 maintainers = [ maintainers.marsam ];
42 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
43 license = licenses.mit;