nixpkgs/pkgs/by-name/au/august/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

31 lines
731 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage {
pname = "august";
version = "unstable-2023-08-13";
src = fetchFromGitHub {
owner = "yoav-lavi";
repo = "august";
rev = "42b8a1bf5ca079aca1769d92315f70b193a9cd4a";
hash = "sha256-58DZMoRH9PBbM4sok/XbUcwSXBeqUAmFZpffdMKQ+dE=";
};
cargoHash = "sha256-/GvBbsSL0dZ0xTystIpb8sk1nNg5hmP4yceCHlh7EQE=";
postInstall = ''
mv $out/bin/{august-cli,ag}
'';
meta = with lib; {
description = "Emmet-like language that produces JSON, TOML, or YAML";
homepage = "https://github.com/yoav-lavi/august";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ figsoda ];
mainProgram = "ag";
};
}