browsh: 1.4.13 -> 1.5.0
This commit is contained in:
parent
9fde998552
commit
63a304b234
|
@ -1,14 +1,14 @@
|
||||||
{ stdenv, buildGoPackage, fetchurl, fetchFromGitHub, go-bindata }:
|
{ stdenv, buildGoPackage, fetchurl, fetchFromGitHub, go-bindata }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.4.13";
|
version = "1.5.0";
|
||||||
|
|
||||||
# TODO: must build the extension instead of downloading it. But since it's
|
# TODO: must build the extension instead of downloading it. But since it's
|
||||||
# literally an asset that is indifferent regardless of the platform, this
|
# literally an asset that is indifferent regardless of the platform, this
|
||||||
# might be just enough.
|
# might be just enough.
|
||||||
webext = fetchurl {
|
webext = fetchurl {
|
||||||
url = "https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi";
|
url = "https://github.com/browsh-org/browsh/releases/download/v${version}/browsh-${version}-an.fx.xpi";
|
||||||
sha256 = "11477z7mva8lwfxsrfxckvgqkxrjhc80czra8cqhpakf0fih1a4g";
|
sha256 = "063m6rcdyf2zcrswkm56k8h3w15124bw5iykklzm60q5jk4ywn3f";
|
||||||
};
|
};
|
||||||
|
|
||||||
in buildGoPackage rec {
|
in buildGoPackage rec {
|
||||||
|
@ -18,18 +18,19 @@ in buildGoPackage rec {
|
||||||
|
|
||||||
goPackagePath = "browsh";
|
goPackagePath = "browsh";
|
||||||
|
|
||||||
|
# further go package dependencies are defined in deps.nix, see line below.
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "browsh-org";
|
owner = "browsh-org";
|
||||||
repo = "browsh";
|
repo = "browsh";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0lvb20zziknlbgy509ccpvlc21sqjc53xar26blmb6sdl6yqkj0w";
|
sha256 = "14addyb1zdk1b9mizfxdagyzlkd9nf5gawnbrs44j5a3ggnl14ln";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ go-bindata ];
|
buildInputs = [ go-bindata ];
|
||||||
|
|
||||||
# embed the web extension in a go file and place it where it's supposed to
|
# embed the web extension in a go file and place it where it's supposed to
|
||||||
# be. See
|
# be. See
|
||||||
# https://github.com/browsh-org/browsh/blob/9abc3aaa3f575ca6ec9a483408d9fdfcf76300fa/interfacer/contrib/xpi2bin.sh
|
# https://github.com/browsh-org/browsh/blob/v1.5.0/interfacer/contrib/xpi2bin.sh
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
xpiprefix="$(mktemp -d)"
|
xpiprefix="$(mktemp -d)"
|
||||||
cp "${webext}" "$xpiprefix/browsh.xpi"
|
cp "${webext}" "$xpiprefix/browsh.xpi"
|
||||||
|
|
Loading…
Reference in a new issue