13 src = fetchFromGitHub {
14 owner = "jandedobbeleer";
16 rev = "refs/tags/v${version}";
17 hash = "sha256-IpOfTCMbnNUW8flyb7p98QEwveNb8wClyBuv7fAKm8Y=";
20 vendorHash = "sha256-aUKF/r0OFN0gZXCKHFYKyQa806NFP5lQAONFZlMP4vE=";
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 ];