16 lines
418 B
Nix
16 lines
418 B
Nix
{ pkgs ? import <nixpkgs> {},
|
|
LGOG_COOKIE_JAR ? <lgog-cookie-jar> }:
|
|
|
|
{ name, sha256, fileid } :
|
|
|
|
pkgs.stdenvNoCC.mkDerivation {
|
|
inherit name;
|
|
inherit fileid;
|
|
fetcher = ["python3" ./fetcher.py];
|
|
builder = ./builder.sh;
|
|
nativeBuildInputs = [ pkgs.python36 pkgs.cacert pkgs.curl ];
|
|
outputHashAlgo = "sha256";
|
|
outputHash = sha256;
|
|
preferLocalBuild = true;
|
|
inherit LGOG_COOKIE_JAR;
|
|
}
|