2021-03-17 22:01:27 +02:00
|
|
|
{ stdenv, lib, fetchurl }: crxMeta:
|
|
|
|
let
|
|
|
|
extensions = lib.importJSON ./extensions-generated.json;
|
|
|
|
in
|
|
|
|
with crxMeta; stdenv.mkDerivation {
|
2023-01-26 00:39:04 +02:00
|
|
|
name = "${name}-${version}";
|
2021-03-17 22:01:27 +02:00
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl { inherit url; inherit sha256; };
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p "$out"
|
|
|
|
install -v -m644 "$src" "$out/${id}.crx"
|
|
|
|
'';
|
|
|
|
inherit id;
|
|
|
|
}
|