Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 29 lines 1.0 kB view raw
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "mcfly"; 5 version = "0.8.1"; 6 7 src = fetchFromGitHub { 8 owner = "cantino"; 9 repo = "mcfly"; 10 rev = "v${version}"; 11 hash = "sha256-9muBKJXsXiSxSmLRygGATEbwpiz6B8oTFQIkVMJMWAk="; 12 }; 13 14 postPatch = '' 15 substituteInPlace mcfly.bash --replace '$(command which mcfly)' '${placeholder "out"}/bin/mcfly' 16 substituteInPlace mcfly.zsh --replace '$(command which mcfly)' '${placeholder "out"}/bin/mcfly' 17 substituteInPlace mcfly.fish --replace '(command which mcfly)' '${placeholder "out"}/bin/mcfly' 18 ''; 19 20 cargoHash = "sha256-LhIAJ3JI7cp+vzEH5vthefgExPORF6Xnjj3cQkIkhSA="; 21 22 meta = with lib; { 23 homepage = "https://github.com/cantino/mcfly"; 24 description = "An upgraded ctrl-r where history results make sense for what you're working on right now"; 25 changelog = "https://github.com/cantino/mcfly/raw/v${version}/CHANGELOG.txt"; 26 license = licenses.mit; 27 maintainers = [ maintainers.melkor333 ]; 28 }; 29}