mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
31 lines
830 B
Nix
31 lines
830 B
Nix
{ stdenv, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "mcfly-${version}";
|
|
version = "v0.3.1";
|
|
rev = "${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "cantino";
|
|
repo = "mcfly";
|
|
sha256 = "0pmyw21zns4zn7pffji4yvbj63fx3g15cx81pk4bs6lzyz5zbdc2";
|
|
};
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/share/mcfly
|
|
cp mcfly.bash $out/share/mcfly/
|
|
chmod +x $out/share/mcfly/mcfly.bash
|
|
'';
|
|
|
|
cargoSha256 = "1bf65kagvhsi6lg8187ihi5j45hkq9d8v6j7rzmmfhngdzvcfr69";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/cantino/mcfly;
|
|
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now.";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.melkor333 ];
|
|
};
|
|
}
|