nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 31 lines 752 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "hors"; 9 version = "0.8.2"; 10 11 src = fetchFromGitHub { 12 owner = "windsoilder"; 13 repo = "hors"; 14 rev = "v${version}"; 15 sha256 = "1q17i8zg7dwd8al42wfnkn891dy5hdhw4325plnihkarr50avbr0"; 16 }; 17 18 cargoHash = "sha256-JTHgOEBpGXPO3C7YUbBF0LFeSUQK+R2w1LugwMV5xyU="; 19 20 # requires network access 21 doCheck = false; 22 23 meta = { 24 description = "Instant coding answers via the command line"; 25 mainProgram = "hors"; 26 homepage = "https://github.com/windsoilder/hors"; 27 changelog = "https://github.com/WindSoilder/hors/blob/v${version}/CHANGELOG.md"; 28 license = lib.licenses.gpl3Only; 29 maintainers = with lib.maintainers; [ figsoda ]; 30 }; 31}