19 lines
434 B
Nix
19 lines
434 B
Nix
{ stdenv, lib, fetchurl }: crxMeta:
|
|
let
|
|
extensions = lib.importJSON ./extensions-generated.json;
|
|
in
|
|
with crxMeta; stdenv.mkDerivation {
|
|
name = "${id}-${name}-${version}";
|
|
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;
|
|
}
|