nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #234821 from figsoda/typical

authored by

figsoda and committed by
GitHub
8d709e87 cadc1481

+45
+43
pkgs/development/tools/misc/typical/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , stdenv 6 + }: 7 + 8 + rustPlatform.buildRustPackage rec { 9 + pname = "typical"; 10 + version = "0.9.4"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "stepchowfun"; 14 + repo = "typical"; 15 + rev = "v${version}"; 16 + hash = "sha256-MkMcJY0J3wvJE01VpphS84zNWv62hbed5ZypvLzrnpo="; 17 + }; 18 + 19 + cargoHash = "sha256-msRfZYvDnb/WeKZhCIabUB2k/AzSYVU1OYdwZNbANbM="; 20 + 21 + nativeBuildInputs = [ 22 + installShellFiles 23 + ]; 24 + 25 + preCheck = '' 26 + export NO_COLOR=true 27 + ''; 28 + 29 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 30 + installShellCompletion --cmd typical \ 31 + --bash <($out/bin/typical shell-completion bash) \ 32 + --fish <($out/bin/typical shell-completion fish) \ 33 + --zsh <($out/bin/typical shell-completion zsh) 34 + ''; 35 + 36 + meta = with lib; { 37 + description = "Data interchange with algebraic data types"; 38 + homepage = "https://github.com/stepchowfun/typical"; 39 + changelog = "https://github.com/stepchowfun/typical/blob/${src.rev}/CHANGELOG.md"; 40 + license = licenses.mit; 41 + maintainers = with maintainers; [ figsoda ]; 42 + }; 43 + }
+2
pkgs/top-level/all-packages.nix
··· 19488 19488 19489 19489 tweak = callPackage ../applications/editors/tweak { }; 19490 19490 19491 + typical = callPackage ../development/tools/misc/typical { }; 19492 + 19491 19493 uddup = callPackage ../tools/security/uddup { }; 19492 19494 19493 19495 udis86 = callPackage ../development/tools/udis86 { };