@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "crumbs";
5+ version = "0.0.3";
6+
7+ src = fetchFromGitHub
8+ { owner = "fasseg";
9+ repo = "crumbs";
10+ rev = version;
11+ sha256 = "0jjvydn4i4n9xv8vsal2jxpa95mk2lw6myv0gx9wih242k9vy0l7";
12+ };
13+
14+ prePatch = ''
15+ sed -i 's|gfind|find|' crumbs-completion.fish
16+ '';
17+
18+ postInstall = ''
19+ mkdir -p $out/share/bash-completion/completions
20+ mkdir -p $out/share/fish/vendor_completions.d
21+
22+ cp crumbs-completion.bash $out/share/bash-completion/completions/crumbs
23+ cp crumbs-completion.fish $out/share/fish/vendor_completions.d/crumbs.fish
24+ '';
25+
26+ meta = with stdenv.lib;
27+ { description = "Bookmarks for the command line";
28+ homepage = https://github.com/fasseg/crumbs;
29+ license = licenses.wtfpl;
30+ platforms = platforms.all;
31+ maintainers = with maintainers; [ thesola10 ];
32+ };
33+}