@@ -1,14 +1,14 @@
11{ stdenv, buildGoPackage, fetchurl, fetchFromGitHub, go-bindata }:
22
33let
4− version = "1.4.13";
4+ version = "1.5.0";
55
66 # TODO: must build the extension instead of downloading it. But since it's
77 # literally an asset that is indifferent regardless of the platform, this
88 # might be just enough.
99 webext = fetchurl {
1010 url = "https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi";
11− sha256 = "11477z7mva8lwfxsrfxckvgqkxrjhc80czra8cqhpakf0fih1a4g";
11+ sha256 = "063m6rcdyf2zcrswkm56k8h3w15124bw5iykklzm60q5jk4ywn3f";
1212 };
1313
1414in buildGoPackage rec {
@@ -18,18 +18,19 @@ in buildGoPackage rec {
1818
1919 goPackagePath = "browsh";
2020
21+ # further go package dependencies are defined in deps.nix, see line below.
2122 src = fetchFromGitHub {
2223 owner = "browsh-org";
2324 repo = "browsh";
2425 rev = "v${version}";
25− sha256 = "0lvb20zziknlbgy509ccpvlc21sqjc53xar26blmb6sdl6yqkj0w";
26+ sha256 = "14addyb1zdk1b9mizfxdagyzlkd9nf5gawnbrs44j5a3ggnl14ln";
2627 };
2728
2829 buildInputs = [ go-bindata ];
2930
3031 # embed the web extension in a go file and place it where it's supposed to
3132 # be. See
32− # https://github.com/browsh-org/browsh/blob/9abc3aaa3f575ca6ec9a483408d9fdfcf76300fa/interfacer/contrib/xpi2bin.sh
33+ # https://github.com/browsh-org/browsh/blob/v1.5.0/interfacer/contrib/xpi2bin.sh
3334 preBuild = ''
3435 xpiprefix="$(mktemp -d)"
3536 cp "${webext}" "$xpiprefix/browsh.xpi"