@@ -2,21 +2,25 @@
22
33rustPlatform.buildRustPackage rec {
44 pname = "mcfly";
5− version = "0.4.1";
5+ version = "0.5.0";
66
77 src = fetchFromGitHub {
88 owner = "cantino";
99 repo = "mcfly";
1010 rev = "v${version}";
11− sha256 = "0fgnhm0b1sd6n12fa2cwlb5b8q4jjm9lqik4lx3l2hv5pkp3dcmb";
11+ sha256 = "155x745jakfcpr6kmp24cy8xwdhv81jdfjjhd149bnw5ilg0z037";
1212 };
1313
14− preInstall = ''
14+ postInstall = ''
15+ substituteInPlace mcfly.bash --replace '$(which mcfly)' $out/bin/mcfly
16+ substituteInPlace mcfly.zsh --replace '$(which mcfly)' $out/bin/mcfly
17+ substituteInPlace mcfly.fish --replace '(which mcfly)' $out/bin/mcfly
1518 install -Dm644 -t $out/share/mcfly mcfly.bash
1619 install -Dm644 -t $out/share/mcfly mcfly.zsh
20+ install -Dm644 -t $out/share/mcfly mcfly.fish
1721 '';
1822
19− cargoSha256 = "11vc4r3cx5amkrmh4hhc174bca02a87i7hfjb33adjvipphfm83f";
23+ cargoSha256 = "0y6sjbzg5qqqip9sc9ajyd5ra3n2wwvarj6nhpzjhh05kqz3qja4";
2024
2125 meta = with stdenv.lib; {
2226 homepage = "https://github.com/cantino/mcfly";