nixpkgs/pkgs/by-name/tr/tridactyl-native/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

31 lines
910 B
Nix

{ lib, buildNimPackage, fetchFromGitHub }:
buildNimPackage {
pname = "tridactyl-native";
version = "0.4.1";
src = fetchFromGitHub {
owner = "tridactyl";
repo = "native_messenger";
rev = "3059abd9fb3f14d598f6c299335c3ebac5bc689a";
hash = "sha256-gicdpWAoimZMNGLc8w0vtJiFFxeqxB8P4lgWDun7unM=";
};
lockFile = ./lock.json;
installPhase = ''
mkdir -p "$out/lib/mozilla/native-messaging-hosts"
sed -i -e "s|REPLACE_ME_WITH_SED|$out/bin/native_main|" "tridactyl.json"
cp tridactyl.json "$out/lib/mozilla/native-messaging-hosts/"
'';
meta = with lib; {
description =
"Native messenger for Tridactyl, a vim-like Firefox webextension";
mainProgram = "native_main";
homepage = "https://github.com/tridactyl/native_messenger";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ timokau dit7ya kiike ];
};
}