13 src = fetchFromGitHub {
14 owner = "jandedobbeleer";
16 rev = "refs/tags/v${version}";
17 hash = "sha256-eJvtO5VL8miafrLQELSQB6/G2wUzTSdmeYW3j/AB3PU=";
20 vendorHash = "sha256-bZG73TKU1vB0Ll/n+VndGZq+cpZRLvGdSAuJNiQwZ94=";
22 sourceRoot = "${src.name}/src";
24 nativeBuildInputs = [ installShellFiles ];
29 "-X main.Version=${version}"
39 mv $out/bin/{src,aliae}
41 + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
42 installShellCompletion --cmd aliae \
43 --bash <($out/bin/aliae completion bash) \
44 --fish <($out/bin/aliae completion fish) \
45 --zsh <($out/bin/aliae completion zsh)
49 description = "Cross shell and platform alias management";
50 mainProgram = "aliae";
51 homepage = "https://aliae.dev";
52 changelog = "https://github.com/JanDeDobbeleer/aliae/releases/tag/v${version}";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ vedantmgoyal9 ];