diff options
author | Melkor333 <samuel@ton-kunst.ch> | 2018-12-26 20:49:24 +0100 |
---|---|---|
committer | Melkor333 <samuel.ruprecht@ton-kunst.ch> | 2019-02-25 13:49:09 +0100 |
commit | a75e25b91978eb3f12b5f2a66958fdb9eb16c64d (patch) | |
tree | 73d434af570ffa23204d6e7e95881194f2495f3f /pkgs/tools/misc/mcfly | |
parent | f3a676a88cdde63862a8cf7c232fc4f6e7eddaef (diff) |
mcfly: init at v0.3.1
Diffstat (limited to 'pkgs/tools/misc/mcfly')
-rw-r--r-- | pkgs/tools/misc/mcfly/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/mcfly/default.nix b/pkgs/tools/misc/mcfly/default.nix new file mode 100644 index 0000000000000..638beb2c75d15 --- /dev/null +++ b/pkgs/tools/misc/mcfly/default.nix @@ -0,0 +1,30 @@ +{ 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 = "0asldrf6s23f9aylk9f8zimmaskgqv3vkdhfnrd26zl9axm0a0ap"; + + 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 ]; + }; +} |