diff options
author | Sarah Brofeldt <sbrofeldt@gmail.com> | 2018-07-31 08:35:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 08:35:39 +0200 |
commit | cb19404fafe646e135595e39b4c403b6203dd39a (patch) | |
tree | 3a093635364c7c0759159025b4fc9da7799c5f27 /pkgs/tools | |
parent | c8b973d3186082f7fd3f3663eea1415556a1ba63 (diff) | |
parent | 49bc1adb26646affa04dd95a0a75ef3a07b0d7a6 (diff) | |
download | nixlib-cb19404fafe646e135595e39b4c403b6203dd39a.tar nixlib-cb19404fafe646e135595e39b4c403b6203dd39a.tar.gz nixlib-cb19404fafe646e135595e39b4c403b6203dd39a.tar.bz2 nixlib-cb19404fafe646e135595e39b4c403b6203dd39a.tar.lz nixlib-cb19404fafe646e135595e39b4c403b6203dd39a.tar.xz nixlib-cb19404fafe646e135595e39b4c403b6203dd39a.tar.zst nixlib-cb19404fafe646e135595e39b4c403b6203dd39a.zip |
Merge pull request #44245 from Infinisil/add/bukubrow
bukubrow: Init at 2.4.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/bukubrow/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/networking/bukubrow/default.nix b/pkgs/tools/networking/bukubrow/default.nix new file mode 100644 index 000000000000..dad1f6f5e940 --- /dev/null +++ b/pkgs/tools/networking/bukubrow/default.nix @@ -0,0 +1,37 @@ +{ stdenv, rustPlatform, fetchFromGitHub, sqlite }: + +rustPlatform.buildRustPackage rec { + name = "bukubrow-${version}"; + version = "2.4.0"; + + src = fetchFromGitHub { + owner = "SamHH"; + repo = "bukubrow"; + rev = version; + sha256 = "1wrwav7am73bmgbpwh1pi0b8k7vhydqvw91hmmhnvbjhrhbns7s5"; + }; + sourceRoot = "source/binary"; + + cargoSha256 = "19d1pgk8nm5jsfd696bqayi5s8ivv9gi6jdb00d10ddjxz234gs7"; + + buildInputs = [ sqlite ]; + + postInstall = '' + mkdir -p $out/etc $out/lib/mozilla/native-messaging-hosts + + host_file="$out/bin/bukubrow" + sed -e "s!%%replace%%!$host_file!" browser-hosts/firefox.json > "$out/etc/firefox-host.json" + sed -e "s!%%replace%%!$host_file!" browser-hosts/chrome.json > "$out/etc/chrome-host.json" + + ln -s $out/etc/firefox-host.json $out/lib/mozilla/native-messaging-hosts/com.samhh.bukubrow.json + ''; + + meta = with stdenv.lib; { + description = "Bukubrow is a WebExtension for Buku, a command-line bookmark manager"; + homepage = https://github.com/SamHH/bukubrow; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ infinisil ]; + }; +} + |