My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/tools/misc/mutagen/default.nix

44 lines
1.3 KiB

{ lib, buildGoModule, fetchFromGitHub, fetchzip }:
buildGoModule rec {
pname = "mutagen";
version = "0.13.1";
src = fetchFromGitHub {
owner = "mutagen-io";
repo = pname;
rev = "v${version}";
sha256 = "sha256-WFEbiPyE029q9+ZXYioESXLm9fmpwihaNwgLcPYQYFE=";
};
vendorSha256 = "sha256-kMX0E3yCg+wRaVMRWNSkeW+dN8b/EG04C0P77x9TQC0=";
agents = fetchzip {
name = "mutagen-agents-${version}";
# The package architecture does not matter since all packages contain identical mutagen-agents.tar.gz.
url = "https://github.com/mutagen-io/mutagen/releases/download/v${version}/mutagen_linux_amd64_v${version}.tar.gz";
stripRoot = false;
extraPostFetch = ''
rm $out/mutagen # Keep only mutagen-agents.tar.gz.
'';
sha256 = "sha256-QwPOt2pK9fRPrfvpc6qqr/uBZ/XK8CMlYNSLb7eWzg4=";
};
doCheck = false;
subPackages = [ "cmd/mutagen" "cmd/mutagen-agent" ];
postInstall = ''
install -d $out/libexec
ln -s ${agents}/mutagen-agents.tar.gz $out/libexec/
'';
meta = with lib; {
description = "Make remote development work with your local tools";
homepage = "https://mutagen.io/";
changelog = "https://github.com/mutagen-io/mutagen/releases/tag/v${version}";
maintainers = [ maintainers.marsam ];
license = licenses.mit;
};
}