From 2ee3d84a968ead1927623984b208fde45ddbd51a Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Mon, 30 Jul 2018 23:02:19 +0200 Subject: [PATCH] bukubrow: init at 2.4.0 --- pkgs/tools/networking/bukubrow/default.nix | 37 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 ++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 pkgs/tools/networking/bukubrow/default.nix diff --git a/pkgs/tools/networking/bukubrow/default.nix b/pkgs/tools/networking/bukubrow/default.nix new file mode 100644 index 00000000000..dad1f6f5e94 --- /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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 78667f7bdbd..9b15ebac685 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -940,6 +940,8 @@ with pkgs; buildah = callPackage ../development/tools/buildah { }; + bukubrow = callPackage ../tools/networking/bukubrow { }; + burpsuite = callPackage ../tools/networking/burpsuite {}; c3d = callPackage ../applications/graphics/c3d { @@ -11842,7 +11844,7 @@ with pkgs; sofia_sip = callPackage ../development/libraries/sofia-sip { }; soil = callPackage ../development/libraries/soil { }; - + sonic = callPackage ../development/libraries/sonic { }; soprano = callPackage ../development/libraries/soprano { }; @@ -20919,7 +20921,7 @@ with pkgs; spyder = pythonPackages.spyder; openspace = callPackage ../applications/science/astronomy/openspace { }; - + stellarium = libsForQt5.callPackage ../applications/science/astronomy/stellarium { }; tulip = callPackage ../applications/science/misc/tulip {