chore: bump scintilla and lexilla version
This commit is contained in:
352
3rdparty/lexilla545/lexilla/test/examples/nix/AllStyles.nix
vendored
Normal file
352
3rdparty/lexilla545/lexilla/test/examples/nix/AllStyles.nix
vendored
Normal file
@ -0,0 +1,352 @@
|
||||
# coding:utf-8
|
||||
|
||||
1 + 2
|
||||
|
||||
let
|
||||
x = 1;
|
||||
y = 2;
|
||||
in x + y
|
||||
|
||||
let x=1;y=2;in x+y
|
||||
|
||||
{
|
||||
string = "hello";
|
||||
integer = 1;
|
||||
float = 3.141;
|
||||
bool = true;
|
||||
null = null;
|
||||
list = [ 1 "two" false ];
|
||||
attribute-set = {
|
||||
a = "hello";
|
||||
b = 2;
|
||||
c = 2.718;
|
||||
d = false;
|
||||
}; # comments are supported
|
||||
}
|
||||
|
||||
rec {
|
||||
one = 1;
|
||||
two = one + 1;
|
||||
three = two + 1;
|
||||
}
|
||||
|
||||
{ one = 1; three = 3; two = 2; }
|
||||
|
||||
let
|
||||
a = 1;
|
||||
in
|
||||
a + a
|
||||
|
||||
let
|
||||
b = a + 1;
|
||||
a = 1;
|
||||
in
|
||||
a + b
|
||||
|
||||
{
|
||||
a = let x = 1; in x;
|
||||
b = x;
|
||||
}
|
||||
|
||||
let
|
||||
attrset = { x = 1; };
|
||||
in
|
||||
attrset.x
|
||||
|
||||
let
|
||||
attrset = { a = { b = { c = 1; }; }; };
|
||||
in
|
||||
attrset.a.b.c
|
||||
|
||||
{ a.b.c = 1; }
|
||||
|
||||
let
|
||||
a = {
|
||||
x = 1;
|
||||
y = 2;
|
||||
z = 3;
|
||||
};
|
||||
in
|
||||
with a; [ x y z ]
|
||||
|
||||
let
|
||||
x = 1;
|
||||
y = 2;
|
||||
in
|
||||
{
|
||||
inherit x y;
|
||||
}
|
||||
|
||||
let
|
||||
a = { x = 1; y = 2; };
|
||||
in
|
||||
{
|
||||
inherit (a) x y;
|
||||
}
|
||||
|
||||
let
|
||||
inherit ({ x = 1; y = 2; }) x y;
|
||||
in [ x y ]
|
||||
|
||||
let
|
||||
name = "Nix${}";
|
||||
in
|
||||
"hello ${name}"
|
||||
|
||||
graphviz = (import ../tools/graphics/graphviz) {
|
||||
inherit fetchurl stdenv libpng libjpeg expat x11 yacc;
|
||||
inherit (xorg) libXaw;
|
||||
};
|
||||
|
||||
let negate = x: !x;
|
||||
concat = x: y: x + y;
|
||||
in if negate true then concat "foo" "bar" else ""
|
||||
|
||||
# A number
|
||||
# Equals 1 + 1
|
||||
# asd
|
||||
|
||||
/* /*
|
||||
Block comments
|
||||
can span multiple lines.
|
||||
*/ "hello"
|
||||
"hello"
|
||||
|
||||
/* /* nope */ 1
|
||||
|
||||
map (concat "foo") [ "bar" "bla" "abc" ]
|
||||
|
||||
{ localServer ? false
|
||||
, httpServer ? false
|
||||
, sslSupport ? false
|
||||
, pythonBindings ? false
|
||||
, javaSwigBindings ? false
|
||||
, javahlBindings ? false
|
||||
, stdenv, fetchurl
|
||||
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, j2sdk ? null
|
||||
}:
|
||||
|
||||
assert localServer -> db4 != null;
|
||||
assert httpServer -> httpd != null && httpd.expat == expat;
|
||||
assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
|
||||
assert pythonBindings -> swig != null && swig.pythonSupport;
|
||||
assert javaSwigBindings -> swig != null && swig.javaSupport;
|
||||
assert javahlBindings -> j2sdk != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "subversion-1.1.1";
|
||||
openssl = if sslSupport then openssl else null;
|
||||
}
|
||||
|
||||
configureFlags = ''
|
||||
-system-zlib -system-libpng -system-libjpeg
|
||||
${if openglSupport then ''-dlopen-opengl
|
||||
-L${mesa}/lib -I${mesa}/include
|
||||
-L${libXmu}/lib -I${libXmu}/include'' else ""}
|
||||
${if threadSupport then "-thread" else "-no-thread"}
|
||||
'';
|
||||
|
||||
let
|
||||
a = "no";
|
||||
a.b.c.d = "foo"
|
||||
in
|
||||
"${a + " ${a + " ${a}"}"}"
|
||||
|
||||
let
|
||||
out = "Nix";
|
||||
in
|
||||
"echo ${out} > $out"
|
||||
|
||||
<nixpkgs/lib>
|
||||
|
||||
''
|
||||
multi
|
||||
''${}
|
||||
'''
|
||||
line
|
||||
''\n
|
||||
string
|
||||
''
|
||||
|
||||
''
|
||||
one
|
||||
two
|
||||
three
|
||||
''
|
||||
|
||||
x: x + 1
|
||||
|
||||
x: y: x + y
|
||||
|
||||
{ a, b }: a + b
|
||||
|
||||
{ a, b ? 0 }: a + b
|
||||
|
||||
{ a, b, ...}: a + b
|
||||
|
||||
args@{ a, b, ... }: a + b + args.c
|
||||
|
||||
{ a, b, ... }@args: a + b + args.c
|
||||
|
||||
let
|
||||
f = x: x + 1;
|
||||
in f
|
||||
|
||||
let
|
||||
f = x: x + 1;
|
||||
in f 1
|
||||
|
||||
let
|
||||
f = x: x.a;
|
||||
v = { a = 1; };
|
||||
in
|
||||
f v
|
||||
|
||||
(x: x + 1) 1
|
||||
|
||||
let
|
||||
f = x: x + 1;
|
||||
a = 1;
|
||||
in [ (f a) ]
|
||||
|
||||
let
|
||||
f = x: x + 1;
|
||||
a = 1;
|
||||
in [ f a ]
|
||||
|
||||
let
|
||||
f = x: y: x + y;
|
||||
in
|
||||
f 1 2
|
||||
|
||||
{a, b}: a + b
|
||||
|
||||
let
|
||||
f = {a, b}: a + b;
|
||||
in
|
||||
f { a = 1; b = 2; }
|
||||
|
||||
let
|
||||
f = {a, b}: a + b;
|
||||
in
|
||||
f { a = 1; b = 2; c = 3; }
|
||||
|
||||
let
|
||||
f = {a, b ? 0}: a + b;
|
||||
in
|
||||
f { a = 1; }
|
||||
|
||||
let
|
||||
f = {a ? 0, b ? 0}: a + b;
|
||||
in
|
||||
f { } # empty attribute set
|
||||
|
||||
let
|
||||
f = {a, b, ...}: a + b;
|
||||
in
|
||||
f { a = 1; b = 2; c = 3; }
|
||||
|
||||
{a, b, ...}@args: a + b + args.c
|
||||
|
||||
args@{a, b, ...}: a + b + args.c
|
||||
|
||||
let
|
||||
f = {a, b, ...}@args: a + b + args.c;
|
||||
in
|
||||
f { a = 1; b = 2; c = 3; }
|
||||
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
let
|
||||
message = "hello world";
|
||||
in
|
||||
pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [ cowsay ];
|
||||
shellHook = ''
|
||||
cowsay ${message}
|
||||
'';
|
||||
}
|
||||
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
|
||||
environment.systemPackages = with pkgs; [ git ];
|
||||
|
||||
# ...
|
||||
}
|
||||
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "hello";
|
||||
|
||||
version = "2.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "1ayhp9v4m4rdhjmnl2bq3cibrbqqkgjbl3s7yk2nhlh8vj3ay16g";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
license = licenses.gpl3Plus;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
baseName = baseNameOf name;
|
||||
|
||||
pullImage =
|
||||
let
|
||||
fixName = name: builtins.replaceStrings [ "/" ":" ] [ "-" "-" ] name;
|
||||
in
|
||||
{ imageName
|
||||
# To find the digest of an image, you can use skopeo:
|
||||
# see doc/functions.xml
|
||||
, imageDigest
|
||||
, sha256
|
||||
, os ? "linux"
|
||||
, # Image architecture, defaults to the architecture of the `hostPlatform` when unset
|
||||
arch ? defaultArchitecture
|
||||
# This is used to set name to the pulled image
|
||||
, finalImageName ? imageName
|
||||
# This used to set a tag to the pulled image
|
||||
, finalImageTag ? "latest"
|
||||
# This is used to disable TLS certificate verification, allowing access to http registries on (hopefully) trusted networks
|
||||
, tlsVerify ? true
|
||||
|
||||
, name ? fixName "docker-image-${finalImageName}-${finalImageTag}.tar"
|
||||
}:
|
||||
|
||||
runCommand name
|
||||
{
|
||||
inherit imageDigest;
|
||||
imageName = finalImageName;
|
||||
imageTag = finalImageTag;
|
||||
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||
outputHashMode = "flat";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = sha256;
|
||||
|
||||
nativeBuildInputs = [ skopeo ];
|
||||
SSL_CERT_FILE = "${cacert.out}/etc/ssl/certs/ca-bundle.crt";
|
||||
|
||||
sourceURL = "docker://${imageName}@${imageDigest}";
|
||||
destNameTag = "${finalImageName}:${finalImageTag}";
|
||||
} ''
|
||||
skopeo \
|
||||
--insecure-policy \
|
||||
--tmpdir=$TMPDIR \
|
||||
--override-os ${os} \
|
||||
--override-arch ${arch} \
|
||||
copy \
|
||||
--src-tls-verify=${lib.boolToString tlsVerify} \
|
||||
"$sourceURL" "docker-archive://$out:$destNameTag" \
|
||||
| cat # pipe through cat to force-disable progress bar
|
||||
'';
|
||||
|
||||
}
|
||||
|
||||
message = "unterminated string;
|
||||
message2 = "unterminated string;
|
353
3rdparty/lexilla545/lexilla/test/examples/nix/AllStyles.nix.folded
vendored
Normal file
353
3rdparty/lexilla545/lexilla/test/examples/nix/AllStyles.nix.folded
vendored
Normal file
@ -0,0 +1,353 @@
|
||||
0 400 400 # coding:utf-8
|
||||
0 400 400
|
||||
0 400 400 1 + 2
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 x = 1;
|
||||
0 400 400 y = 2;
|
||||
0 400 400 in x + y
|
||||
0 400 400
|
||||
0 400 400 let x=1;y=2;in x+y
|
||||
0 400 400
|
||||
2 400 401 + {
|
||||
0 401 401 | string = "hello";
|
||||
0 401 401 | integer = 1;
|
||||
0 401 401 | float = 3.141;
|
||||
0 401 401 | bool = true;
|
||||
0 401 401 | null = null;
|
||||
0 401 401 | list = [ 1 "two" false ];
|
||||
2 401 402 + attribute-set = {
|
||||
0 402 402 | a = "hello";
|
||||
0 402 402 | b = 2;
|
||||
0 402 402 | c = 2.718;
|
||||
0 402 402 | d = false;
|
||||
0 402 401 | }; # comments are supported
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
2 400 401 + rec {
|
||||
0 401 401 | one = 1;
|
||||
0 401 401 | two = one + 1;
|
||||
0 401 401 | three = two + 1;
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
0 400 400 { one = 1; three = 3; two = 2; }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 a = 1;
|
||||
0 400 400 in
|
||||
0 400 400 a + a
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 b = a + 1;
|
||||
0 400 400 a = 1;
|
||||
0 400 400 in
|
||||
0 400 400 a + b
|
||||
0 400 400
|
||||
2 400 401 + {
|
||||
0 401 401 | a = let x = 1; in x;
|
||||
0 401 401 | b = x;
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 attrset = { x = 1; };
|
||||
0 400 400 in
|
||||
0 400 400 attrset.x
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 attrset = { a = { b = { c = 1; }; }; };
|
||||
0 400 400 in
|
||||
0 400 400 attrset.a.b.c
|
||||
0 400 400
|
||||
0 400 400 { a.b.c = 1; }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
2 400 401 + a = {
|
||||
0 401 401 | x = 1;
|
||||
0 401 401 | y = 2;
|
||||
0 401 401 | z = 3;
|
||||
0 401 400 | };
|
||||
0 400 400 in
|
||||
0 400 400 with a; [ x y z ]
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 x = 1;
|
||||
0 400 400 y = 2;
|
||||
0 400 400 in
|
||||
2 400 401 + {
|
||||
0 401 401 | inherit x y;
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 a = { x = 1; y = 2; };
|
||||
0 400 400 in
|
||||
2 400 401 + {
|
||||
0 401 401 | inherit (a) x y;
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 inherit ({ x = 1; y = 2; }) x y;
|
||||
0 400 400 in [ x y ]
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 name = "Nix${}";
|
||||
0 400 400 in
|
||||
0 400 400 "hello ${name}"
|
||||
0 400 400
|
||||
2 400 401 + graphviz = (import ../tools/graphics/graphviz) {
|
||||
0 401 401 | inherit fetchurl stdenv libpng libjpeg expat x11 yacc;
|
||||
0 401 401 | inherit (xorg) libXaw;
|
||||
0 401 400 | };
|
||||
0 400 400
|
||||
0 400 400 let negate = x: !x;
|
||||
0 400 400 concat = x: y: x + y;
|
||||
0 400 400 in if negate true then concat "foo" "bar" else ""
|
||||
0 400 400
|
||||
0 400 400 # A number
|
||||
0 400 400 # Equals 1 + 1
|
||||
0 400 400 # asd
|
||||
0 400 400
|
||||
2 400 401 + /* /*
|
||||
0 401 401 | Block comments
|
||||
0 401 401 | can span multiple lines.
|
||||
0 401 400 | */ "hello"
|
||||
0 400 400 "hello"
|
||||
0 400 400
|
||||
0 400 400 /* /* nope */ 1
|
||||
0 400 400
|
||||
0 400 400 map (concat "foo") [ "bar" "bla" "abc" ]
|
||||
0 400 400
|
||||
2 400 401 + { localServer ? false
|
||||
0 401 401 | , httpServer ? false
|
||||
0 401 401 | , sslSupport ? false
|
||||
0 401 401 | , pythonBindings ? false
|
||||
0 401 401 | , javaSwigBindings ? false
|
||||
0 401 401 | , javahlBindings ? false
|
||||
0 401 401 | , stdenv, fetchurl
|
||||
0 401 401 | , openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, j2sdk ? null
|
||||
0 401 400 | }:
|
||||
0 400 400
|
||||
0 400 400 assert localServer -> db4 != null;
|
||||
0 400 400 assert httpServer -> httpd != null && httpd.expat == expat;
|
||||
0 400 400 assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
|
||||
0 400 400 assert pythonBindings -> swig != null && swig.pythonSupport;
|
||||
0 400 400 assert javaSwigBindings -> swig != null && swig.javaSupport;
|
||||
0 400 400 assert javahlBindings -> j2sdk != null;
|
||||
0 400 400
|
||||
2 400 401 + stdenv.mkDerivation {
|
||||
0 401 401 | name = "subversion-1.1.1";
|
||||
0 401 401 | openssl = if sslSupport then openssl else null;
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
2 400 401 + configureFlags = ''
|
||||
0 401 401 | -system-zlib -system-libpng -system-libjpeg
|
||||
2 401 403 + ${if openglSupport then ''-dlopen-opengl
|
||||
0 403 403 | -L${mesa}/lib -I${mesa}/include
|
||||
0 403 401 | -L${libXmu}/lib -I${libXmu}/include'' else ""}
|
||||
0 401 401 | ${if threadSupport then "-thread" else "-no-thread"}
|
||||
0 401 400 | '';
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 a = "no";
|
||||
0 400 400 a.b.c.d = "foo"
|
||||
0 400 400 in
|
||||
0 400 400 "${a + " ${a + " ${a}"}"}"
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 out = "Nix";
|
||||
0 400 400 in
|
||||
0 400 400 "echo ${out} > $out"
|
||||
0 400 400
|
||||
0 400 400 <nixpkgs/lib>
|
||||
0 400 400
|
||||
2 400 401 + ''
|
||||
0 401 401 | multi
|
||||
0 401 401 | ''${}
|
||||
0 401 401 | '''
|
||||
0 401 401 | line
|
||||
0 401 401 | ''\n
|
||||
0 401 401 | string
|
||||
0 401 400 | ''
|
||||
0 400 400
|
||||
2 400 401 + ''
|
||||
0 401 401 | one
|
||||
0 401 401 | two
|
||||
0 401 401 | three
|
||||
0 401 400 | ''
|
||||
0 400 400
|
||||
0 400 400 x: x + 1
|
||||
0 400 400
|
||||
0 400 400 x: y: x + y
|
||||
0 400 400
|
||||
0 400 400 { a, b }: a + b
|
||||
0 400 400
|
||||
0 400 400 { a, b ? 0 }: a + b
|
||||
0 400 400
|
||||
0 400 400 { a, b, ...}: a + b
|
||||
0 400 400
|
||||
0 400 400 args@{ a, b, ... }: a + b + args.c
|
||||
0 400 400
|
||||
0 400 400 { a, b, ... }@args: a + b + args.c
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = x: x + 1;
|
||||
0 400 400 in f
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = x: x + 1;
|
||||
0 400 400 in f 1
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = x: x.a;
|
||||
0 400 400 v = { a = 1; };
|
||||
0 400 400 in
|
||||
0 400 400 f v
|
||||
0 400 400
|
||||
0 400 400 (x: x + 1) 1
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = x: x + 1;
|
||||
0 400 400 a = 1;
|
||||
0 400 400 in [ (f a) ]
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = x: x + 1;
|
||||
0 400 400 a = 1;
|
||||
0 400 400 in [ f a ]
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = x: y: x + y;
|
||||
0 400 400 in
|
||||
0 400 400 f 1 2
|
||||
0 400 400
|
||||
0 400 400 {a, b}: a + b
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = {a, b}: a + b;
|
||||
0 400 400 in
|
||||
0 400 400 f { a = 1; b = 2; }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = {a, b}: a + b;
|
||||
0 400 400 in
|
||||
0 400 400 f { a = 1; b = 2; c = 3; }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = {a, b ? 0}: a + b;
|
||||
0 400 400 in
|
||||
0 400 400 f { a = 1; }
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = {a ? 0, b ? 0}: a + b;
|
||||
0 400 400 in
|
||||
0 400 400 f { } # empty attribute set
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = {a, b, ...}: a + b;
|
||||
0 400 400 in
|
||||
0 400 400 f { a = 1; b = 2; c = 3; }
|
||||
0 400 400
|
||||
0 400 400 {a, b, ...}@args: a + b + args.c
|
||||
0 400 400
|
||||
0 400 400 args@{a, b, ...}: a + b + args.c
|
||||
0 400 400
|
||||
0 400 400 let
|
||||
0 400 400 f = {a, b, ...}@args: a + b + args.c;
|
||||
0 400 400 in
|
||||
0 400 400 f { a = 1; b = 2; c = 3; }
|
||||
0 400 400
|
||||
0 400 400 { pkgs ? import <nixpkgs> {} }:
|
||||
0 400 400 let
|
||||
0 400 400 message = "hello world";
|
||||
0 400 400 in
|
||||
2 400 401 + pkgs.mkShellNoCC {
|
||||
0 401 401 | packages = with pkgs; [ cowsay ];
|
||||
2 401 402 + shellHook = ''
|
||||
0 402 402 | cowsay ${message}
|
||||
0 402 401 | '';
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
2 400 401 + { config, pkgs, ... }: {
|
||||
0 401 401 |
|
||||
0 401 401 | imports = [ ./hardware-configuration.nix ];
|
||||
0 401 401 |
|
||||
0 401 401 | environment.systemPackages = with pkgs; [ git ];
|
||||
0 401 401 |
|
||||
0 401 401 | # ...
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
0 400 400 { lib, stdenv, fetchurl }:
|
||||
0 400 400
|
||||
2 400 401 + stdenv.mkDerivation rec {
|
||||
0 401 401 |
|
||||
0 401 401 | pname = "hello";
|
||||
0 401 401 |
|
||||
0 401 401 | version = "2.12";
|
||||
0 401 401 |
|
||||
2 401 402 + src = fetchurl {
|
||||
0 402 402 | url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
|
||||
0 402 402 | sha256 = "1ayhp9v4m4rdhjmnl2bq3cibrbqqkgjbl3s7yk2nhlh8vj3ay16g";
|
||||
0 402 401 | };
|
||||
0 401 401 |
|
||||
2 401 402 + meta = with lib; {
|
||||
0 402 402 | license = licenses.gpl3Plus;
|
||||
0 402 401 | };
|
||||
0 401 401 |
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
2 400 401 + {
|
||||
0 401 401 | baseName = baseNameOf name;
|
||||
0 401 401 |
|
||||
0 401 401 | pullImage =
|
||||
0 401 401 | let
|
||||
0 401 401 | fixName = name: builtins.replaceStrings [ "/" ":" ] [ "-" "-" ] name;
|
||||
0 401 401 | in
|
||||
2 401 402 + { imageName
|
||||
0 402 402 | # To find the digest of an image, you can use skopeo:
|
||||
0 402 402 | # see doc/functions.xml
|
||||
0 402 402 | , imageDigest
|
||||
0 402 402 | , sha256
|
||||
0 402 402 | , os ? "linux"
|
||||
0 402 402 | , # Image architecture, defaults to the architecture of the `hostPlatform` when unset
|
||||
0 402 402 | arch ? defaultArchitecture
|
||||
0 402 402 | # This is used to set name to the pulled image
|
||||
0 402 402 | , finalImageName ? imageName
|
||||
0 402 402 | # This used to set a tag to the pulled image
|
||||
0 402 402 | , finalImageTag ? "latest"
|
||||
0 402 402 | # This is used to disable TLS certificate verification, allowing access to http registries on (hopefully) trusted networks
|
||||
0 402 402 | , tlsVerify ? true
|
||||
0 402 402 |
|
||||
0 402 402 | , name ? fixName "docker-image-${finalImageName}-${finalImageTag}.tar"
|
||||
0 402 401 | }:
|
||||
0 401 401 |
|
||||
0 401 401 | runCommand name
|
||||
2 401 402 + {
|
||||
0 402 402 | inherit imageDigest;
|
||||
0 402 402 | imageName = finalImageName;
|
||||
0 402 402 | imageTag = finalImageTag;
|
||||
0 402 402 | impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||
0 402 402 | outputHashMode = "flat";
|
||||
0 402 402 | outputHashAlgo = "sha256";
|
||||
0 402 402 | outputHash = sha256;
|
||||
0 402 402 |
|
||||
0 402 402 | nativeBuildInputs = [ skopeo ];
|
||||
0 402 402 | SSL_CERT_FILE = "${cacert.out}/etc/ssl/certs/ca-bundle.crt";
|
||||
0 402 402 |
|
||||
0 402 402 | sourceURL = "docker://${imageName}@${imageDigest}";
|
||||
0 402 402 | destNameTag = "${finalImageName}:${finalImageTag}";
|
||||
0 402 402 | } ''
|
||||
0 402 402 | skopeo \
|
||||
0 402 402 | --insecure-policy \
|
||||
0 402 402 | --tmpdir=$TMPDIR \
|
||||
0 402 402 | --override-os ${os} \
|
||||
0 402 402 | --override-arch ${arch} \
|
||||
0 402 402 | copy \
|
||||
0 402 402 | --src-tls-verify=${lib.boolToString tlsVerify} \
|
||||
0 402 402 | "$sourceURL" "docker-archive://$out:$destNameTag" \
|
||||
0 402 402 | | cat # pipe through cat to force-disable progress bar
|
||||
0 402 401 | '';
|
||||
0 401 401 |
|
||||
0 401 400 | }
|
||||
0 400 400
|
||||
0 400 400 message = "unterminated string;
|
||||
0 400 400 message2 = "unterminated string;
|
||||
0 400 0
|
352
3rdparty/lexilla545/lexilla/test/examples/nix/AllStyles.nix.styled
vendored
Normal file
352
3rdparty/lexilla545/lexilla/test/examples/nix/AllStyles.nix.styled
vendored
Normal file
@ -0,0 +1,352 @@
|
||||
{1}# coding:utf-8
|
||||
{0}
|
||||
{9}1{0} {7}+{0} {9}2{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}x{0} {7}={0} {9}1{7};{0}
|
||||
{10}y{0} {7}={0} {9}2{7};{0}
|
||||
{12}in{0} {6}x{0} {7}+{0} {6}y{0}
|
||||
|
||||
{12}let{0} {10}x{7}={9}1{7};{10}y{7}={9}2{7};{12}in{0} {6}x{7}+{6}y{0}
|
||||
|
||||
{7}{{0}
|
||||
{10}string{0} {7}={0} {3}"hello"{7};{0}
|
||||
{10}integer{0} {7}={0} {9}1{7};{0}
|
||||
{10}float{0} {7}={0} {9}3.141{7};{0}
|
||||
{10}bool{0} {7}={0} {13}true{7};{0}
|
||||
{10}null{0} {7}={0} {13}null{7};{0}
|
||||
{10}list{0} {7}={0} {7}[{0} {9}1{0} {3}"two"{0} {13}false{0} {7}];{0}
|
||||
{10}attribute-set{0} {7}={0} {7}{{0}
|
||||
{10}a{0} {7}={0} {3}"hello"{7};{0}
|
||||
{10}b{0} {7}={0} {9}2{7};{0}
|
||||
{10}c{0} {7}={0} {9}2.718{7};{0}
|
||||
{10}d{0} {7}={0} {13}false{7};{0}
|
||||
{7}};{0} {1}# comments are supported
|
||||
{7}}{0}
|
||||
|
||||
{12}rec{0} {7}{{0}
|
||||
{10}one{0} {7}={0} {9}1{7};{0}
|
||||
{10}two{0} {7}={0} {6}one{0} {7}+{0} {9}1{7};{0}
|
||||
{10}three{0} {7}={0} {6}two{0} {7}+{0} {9}1{7};{0}
|
||||
{7}}{0}
|
||||
|
||||
{7}{{0} {10}one{0} {7}={0} {9}1{7};{0} {10}three{0} {7}={0} {9}3{7};{0} {10}two{0} {7}={0} {9}2{7};{0} {7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}a{0} {7}={0} {9}1{7};{0}
|
||||
{12}in{0}
|
||||
{6}a{0} {7}+{0} {6}a{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}b{0} {7}={0} {6}a{0} {7}+{0} {9}1{7};{0}
|
||||
{10}a{0} {7}={0} {9}1{7};{0}
|
||||
{12}in{0}
|
||||
{6}a{0} {7}+{0} {6}b{0}
|
||||
|
||||
{7}{{0}
|
||||
{10}a{0} {7}={0} {12}let{0} {10}x{0} {7}={0} {9}1{7};{0} {12}in{0} {6}x{7};{0}
|
||||
{10}b{0} {7}={0} {6}x{7};{0}
|
||||
{7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}attrset{0} {7}={0} {7}{{0} {10}x{0} {7}={0} {9}1{7};{0} {7}};{0}
|
||||
{12}in{0}
|
||||
{6}attrset{7}.{6}x{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}attrset{0} {7}={0} {7}{{0} {10}a{0} {7}={0} {7}{{0} {10}b{0} {7}={0} {7}{{0} {10}c{0} {7}={0} {9}1{7};{0} {7}};{0} {7}};{0} {7}};{0}
|
||||
{12}in{0}
|
||||
{6}attrset{7}.{6}a{7}.{6}b{7}.{6}c{0}
|
||||
|
||||
{7}{{0} {6}a{7}.{6}b{7}.{10}c{0} {7}={0} {9}1{7};{0} {7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}a{0} {7}={0} {7}{{0}
|
||||
{10}x{0} {7}={0} {9}1{7};{0}
|
||||
{10}y{0} {7}={0} {9}2{7};{0}
|
||||
{10}z{0} {7}={0} {9}3{7};{0}
|
||||
{7}};{0}
|
||||
{12}in{0}
|
||||
{12}with{0} {6}a{7};{0} {7}[{0} {6}x{0} {6}y{0} {6}z{0} {7}]{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}x{0} {7}={0} {9}1{7};{0}
|
||||
{10}y{0} {7}={0} {9}2{7};{0}
|
||||
{12}in{0}
|
||||
{7}{{0}
|
||||
{12}inherit{0} {6}x{0} {6}y{7};{0}
|
||||
{7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}a{0} {7}={0} {7}{{0} {10}x{0} {7}={0} {9}1{7};{0} {10}y{0} {7}={0} {9}2{7};{0} {7}};{0}
|
||||
{12}in{0}
|
||||
{7}{{0}
|
||||
{12}inherit{0} {7}({6}a{7}){0} {6}x{0} {6}y{7};{0}
|
||||
{7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{12}inherit{0} {7}({{0} {10}x{0} {7}={0} {9}1{7};{0} {10}y{0} {7}={0} {9}2{7};{0} {7}}){0} {6}x{0} {6}y{7};{0}
|
||||
{12}in{0} {7}[{0} {6}x{0} {6}y{0} {7}]{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}name{0} {7}={0} {3}"Nix{8}${}{3}"{7};{0}
|
||||
{12}in{0}
|
||||
{3}"hello {8}${{6}name{8}}{3}"{0}
|
||||
|
||||
{10}graphviz{0} {7}={0} {7}({14}import{0} {11}../tools/graphics/graphviz{7}){0} {7}{{0}
|
||||
{12}inherit{0} {14}fetchurl{0} {6}stdenv{0} {6}libpng{0} {6}libjpeg{0} {6}expat{0} {6}x11{0} {6}yacc{7};{0}
|
||||
{12}inherit{0} {7}({6}xorg{7}){0} {6}libXaw{7};{0}
|
||||
{7}};{0}
|
||||
|
||||
{12}let{0} {10}negate{0} {7}={0} {6}x{7}:{0} {7}!{6}x{7};{0}
|
||||
{10}concat{0} {7}={0} {6}x{7}:{0} {6}y{7}:{0} {6}x{0} {7}+{0} {6}y{7};{0}
|
||||
{12}in{0} {12}if{0} {6}negate{0} {13}true{0} {12}then{0} {6}concat{0} {3}"foo"{0} {3}"bar"{0} {12}else{0} {3}""{0}
|
||||
|
||||
{1}# A number
|
||||
# Equals 1 + 1
|
||||
# asd
|
||||
{0}
|
||||
{2}/* /*
|
||||
Block comments
|
||||
can span multiple lines.
|
||||
*/{0} {3}"hello"{0}
|
||||
{3}"hello"{0}
|
||||
|
||||
{2}/* /* nope */{0} {9}1{0}
|
||||
|
||||
{14}map{0} {7}({6}concat{0} {3}"foo"{7}){0} {7}[{0} {3}"bar"{0} {3}"bla"{0} {3}"abc"{0} {7}]{0}
|
||||
|
||||
{7}{{0} {6}localServer{0} {7}?{0} {13}false{0}
|
||||
{7},{0} {6}httpServer{0} {7}?{0} {13}false{0}
|
||||
{7},{0} {6}sslSupport{0} {7}?{0} {13}false{0}
|
||||
{7},{0} {6}pythonBindings{0} {7}?{0} {13}false{0}
|
||||
{7},{0} {6}javaSwigBindings{0} {7}?{0} {13}false{0}
|
||||
{7},{0} {6}javahlBindings{0} {7}?{0} {13}false{0}
|
||||
{7},{0} {6}stdenv{7},{0} {14}fetchurl{0}
|
||||
{7},{0} {6}openssl{0} {7}?{0} {13}null{7},{0} {6}httpd{0} {7}?{0} {13}null{7},{0} {6}db4{0} {7}?{0} {13}null{7},{0} {6}expat{7},{0} {6}swig{0} {7}?{0} {13}null{7},{0} {6}j2sdk{0} {7}?{0} {13}null{0}
|
||||
{7}}:{0}
|
||||
|
||||
{12}assert{0} {6}localServer{0} {7}->{0} {6}db4{0} {7}!={0} {13}null{7};{0}
|
||||
{12}assert{0} {6}httpServer{0} {7}->{0} {6}httpd{0} {7}!={0} {13}null{0} {7}&&{0} {6}httpd{7}.{10}expat{0} {7}=={0} {6}expat{7};{0}
|
||||
{12}assert{0} {6}sslSupport{0} {7}->{0} {6}openssl{0} {7}!={0} {13}null{0} {7}&&{0} {7}({6}httpServer{0} {7}->{0} {6}httpd{7}.{10}openssl{0} {7}=={0} {6}openssl{7});{0}
|
||||
{12}assert{0} {6}pythonBindings{0} {7}->{0} {6}swig{0} {7}!={0} {13}null{0} {7}&&{0} {6}swig{7}.{6}pythonSupport{7};{0}
|
||||
{12}assert{0} {6}javaSwigBindings{0} {7}->{0} {6}swig{0} {7}!={0} {13}null{0} {7}&&{0} {6}swig{7}.{6}javaSupport{7};{0}
|
||||
{12}assert{0} {6}javahlBindings{0} {7}->{0} {6}j2sdk{0} {7}!={0} {13}null{7};{0}
|
||||
|
||||
{6}stdenv{7}.{6}mkDerivation{0} {7}{{0}
|
||||
{10}name{0} {7}={0} {3}"subversion-1.1.1"{7};{0}
|
||||
{10}openssl{0} {7}={0} {12}if{0} {6}sslSupport{0} {12}then{0} {6}openssl{0} {12}else{0} {13}null{7};{0}
|
||||
{7}}{0}
|
||||
|
||||
{10}configureFlags{0} {7}={0} {4}''
|
||||
-system-zlib -system-libpng -system-libjpeg
|
||||
{8}${{12}if{0} {6}openglSupport{0} {12}then{0} {4}''-dlopen-opengl
|
||||
-L{8}${{6}mesa{8}}{4}/lib -I{8}${{6}mesa{8}}{4}/include
|
||||
-L{8}${{6}libXmu{8}}{4}/lib -I{8}${{6}libXmu{8}}{4}/include''{0} {12}else{0} {3}""{8}}{4}
|
||||
{8}${{12}if{0} {6}threadSupport{0} {12}then{0} {3}"-thread"{0} {12}else{0} {3}"-no-thread"{8}}{4}
|
||||
''{7};{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}a{0} {7}={0} {3}"no"{7};{0}
|
||||
{6}a{7}.{6}b{7}.{6}c{7}.{10}d{0} {7}={0} {3}"foo"{0}
|
||||
{12}in{0}
|
||||
{3}"{8}${{6}a{0} {7}+{0} {3}" {8}${{6}a{0} {7}+{0} {3}" {8}${{6}a{8}}{3}"{8}}{3}"{8}}{3}"{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}out{0} {7}={0} {3}"Nix"{7};{0}
|
||||
{12}in{0}
|
||||
{3}"echo {8}${{6}out{8}}{3} > $out"{0}
|
||||
|
||||
{11}<nixpkgs/lib>{0}
|
||||
|
||||
{4}''
|
||||
multi
|
||||
{5}''${4}{}
|
||||
{5}'''{4}
|
||||
line
|
||||
{5}''\n{4}
|
||||
string
|
||||
''{0}
|
||||
|
||||
{4}''
|
||||
one
|
||||
two
|
||||
three
|
||||
''{0}
|
||||
|
||||
{6}x{7}:{0} {6}x{0} {7}+{0} {9}1{0}
|
||||
|
||||
{6}x{7}:{0} {6}y{7}:{0} {6}x{0} {7}+{0} {6}y{0}
|
||||
|
||||
{7}{{0} {6}a{7},{0} {6}b{0} {7}}:{0} {6}a{0} {7}+{0} {6}b{0}
|
||||
|
||||
{7}{{0} {6}a{7},{0} {6}b{0} {7}?{0} {9}0{0} {7}}:{0} {6}a{0} {7}+{0} {6}b{0}
|
||||
|
||||
{7}{{0} {6}a{7},{0} {6}b{7},{0} {7}...}:{0} {6}a{0} {7}+{0} {6}b{0}
|
||||
|
||||
{6}args{7}@{{0} {6}a{7},{0} {6}b{7},{0} {7}...{0} {7}}:{0} {6}a{0} {7}+{0} {6}b{0} {7}+{0} {6}args{7}.{6}c{0}
|
||||
|
||||
{7}{{0} {6}a{7},{0} {6}b{7},{0} {7}...{0} {7}}@{6}args{7}:{0} {6}a{0} {7}+{0} {6}b{0} {7}+{0} {6}args{7}.{6}c{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {6}x{7}:{0} {6}x{0} {7}+{0} {9}1{7};{0}
|
||||
{12}in{0} {6}f{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {6}x{7}:{0} {6}x{0} {7}+{0} {9}1{7};{0}
|
||||
{12}in{0} {6}f{0} {9}1{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {6}x{7}:{0} {6}x{7}.{6}a{7};{0}
|
||||
{10}v{0} {7}={0} {7}{{0} {10}a{0} {7}={0} {9}1{7};{0} {7}};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {6}v{0}
|
||||
|
||||
{7}({6}x{7}:{0} {6}x{0} {7}+{0} {9}1{7}){0} {9}1{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {6}x{7}:{0} {6}x{0} {7}+{0} {9}1{7};{0}
|
||||
{10}a{0} {7}={0} {9}1{7};{0}
|
||||
{12}in{0} {7}[{0} {7}({6}f{0} {6}a{7}){0} {7}]{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {6}x{7}:{0} {6}x{0} {7}+{0} {9}1{7};{0}
|
||||
{10}a{0} {7}={0} {9}1{7};{0}
|
||||
{12}in{0} {7}[{0} {6}f{0} {6}a{0} {7}]{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {6}x{7}:{0} {6}y{7}:{0} {6}x{0} {7}+{0} {6}y{7};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {9}1{0} {9}2{0}
|
||||
|
||||
{7}{{6}a{7},{0} {6}b{7}}:{0} {6}a{0} {7}+{0} {6}b{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {7}{{6}a{7},{0} {6}b{7}}:{0} {6}a{0} {7}+{0} {6}b{7};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {7}{{0} {10}a{0} {7}={0} {9}1{7};{0} {10}b{0} {7}={0} {9}2{7};{0} {7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {7}{{6}a{7},{0} {6}b{7}}:{0} {6}a{0} {7}+{0} {6}b{7};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {7}{{0} {10}a{0} {7}={0} {9}1{7};{0} {10}b{0} {7}={0} {9}2{7};{0} {10}c{0} {7}={0} {9}3{7};{0} {7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {7}{{6}a{7},{0} {6}b{0} {7}?{0} {9}0{7}}:{0} {6}a{0} {7}+{0} {6}b{7};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {7}{{0} {10}a{0} {7}={0} {9}1{7};{0} {7}}{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {7}{{6}a{0} {7}?{0} {9}0{7},{0} {6}b{0} {7}?{0} {9}0{7}}:{0} {6}a{0} {7}+{0} {6}b{7};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {7}{{0} {7}}{0} {1}# empty attribute set
|
||||
{0}
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {7}{{6}a{7},{0} {6}b{7},{0} {7}...}:{0} {6}a{0} {7}+{0} {6}b{7};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {7}{{0} {10}a{0} {7}={0} {9}1{7};{0} {10}b{0} {7}={0} {9}2{7};{0} {10}c{0} {7}={0} {9}3{7};{0} {7}}{0}
|
||||
|
||||
{7}{{6}a{7},{0} {6}b{7},{0} {7}...}@{6}args{7}:{0} {6}a{0} {7}+{0} {6}b{0} {7}+{0} {6}args{7}.{6}c{0}
|
||||
|
||||
{6}args{7}@{{6}a{7},{0} {6}b{7},{0} {7}...}:{0} {6}a{0} {7}+{0} {6}b{0} {7}+{0} {6}args{7}.{6}c{0}
|
||||
|
||||
{12}let{0}
|
||||
{10}f{0} {7}={0} {7}{{6}a{7},{0} {6}b{7},{0} {7}...}@{6}args{7}:{0} {6}a{0} {7}+{0} {6}b{0} {7}+{0} {6}args{7}.{6}c{7};{0}
|
||||
{12}in{0}
|
||||
{6}f{0} {7}{{0} {10}a{0} {7}={0} {9}1{7};{0} {10}b{0} {7}={0} {9}2{7};{0} {10}c{0} {7}={0} {9}3{7};{0} {7}}{0}
|
||||
|
||||
{7}{{0} {6}pkgs{0} {7}?{0} {14}import{0} {11}<nixpkgs>{0} {7}{}{0} {7}}:{0}
|
||||
{12}let{0}
|
||||
{10}message{0} {7}={0} {3}"hello world"{7};{0}
|
||||
{12}in{0}
|
||||
{6}pkgs{7}.{6}mkShellNoCC{0} {7}{{0}
|
||||
{10}packages{0} {7}={0} {12}with{0} {6}pkgs{7};{0} {7}[{0} {6}cowsay{0} {7}];{0}
|
||||
{10}shellHook{0} {7}={0} {4}''
|
||||
cowsay {8}${{6}message{8}}{4}
|
||||
''{7};{0}
|
||||
{7}}{0}
|
||||
|
||||
{7}{{0} {6}config{7},{0} {6}pkgs{7},{0} {7}...{0} {7}}:{0} {7}{{0}
|
||||
|
||||
{10}imports{0} {7}={0} {7}[{0} {11}./hardware-configuration.nix{0} {7}];{0}
|
||||
|
||||
{6}environment{7}.{10}systemPackages{0} {7}={0} {12}with{0} {6}pkgs{7};{0} {7}[{0} {6}git{0} {7}];{0}
|
||||
|
||||
{1}# ...
|
||||
{7}}{0}
|
||||
|
||||
{7}{{0} {6}lib{7},{0} {6}stdenv{7},{0} {14}fetchurl{0} {7}}:{0}
|
||||
|
||||
{6}stdenv{7}.{6}mkDerivation{0} {12}rec{0} {7}{{0}
|
||||
|
||||
{10}pname{0} {7}={0} {3}"hello"{7};{0}
|
||||
|
||||
{10}version{0} {7}={0} {3}"2.12"{7};{0}
|
||||
|
||||
{10}src{0} {7}={0} {14}fetchurl{0} {7}{{0}
|
||||
{10}url{0} {7}={0} {3}"mirror://gnu/{8}${{6}pname{8}}{3}/{8}${{6}pname{8}}{3}-{8}${{6}version{8}}{3}.tar.gz"{7};{0}
|
||||
{10}sha256{0} {7}={0} {3}"1ayhp9v4m4rdhjmnl2bq3cibrbqqkgjbl3s7yk2nhlh8vj3ay16g"{7};{0}
|
||||
{7}};{0}
|
||||
|
||||
{10}meta{0} {7}={0} {12}with{0} {6}lib{7};{0} {7}{{0}
|
||||
{10}license{0} {7}={0} {6}licenses{7}.{6}gpl3Plus{7};{0}
|
||||
{7}};{0}
|
||||
|
||||
{7}}{0}
|
||||
|
||||
{7}{{0}
|
||||
{10}baseName{0} {7}={0} {14}baseNameOf{0} {6}name{7};{0}
|
||||
|
||||
{10}pullImage{0} {7}={0}
|
||||
{12}let{0}
|
||||
{10}fixName{0} {7}={0} {6}name{7}:{0} {14}builtins{7}.{14}replaceStrings{0} {7}[{0} {3}"/"{0} {3}":"{0} {7}]{0} {7}[{0} {3}"-"{0} {3}"-"{0} {7}]{0} {6}name{7};{0}
|
||||
{12}in{0}
|
||||
{7}{{0} {6}imageName{0}
|
||||
{1}# To find the digest of an image, you can use skopeo:
|
||||
{0} {1}# see doc/functions.xml
|
||||
{0} {7},{0} {6}imageDigest{0}
|
||||
{7},{0} {6}sha256{0}
|
||||
{7},{0} {6}os{0} {7}?{0} {3}"linux"{0}
|
||||
{7},{0} {1}# Image architecture, defaults to the architecture of the `hostPlatform` when unset
|
||||
{0} {6}arch{0} {7}?{0} {6}defaultArchitecture{0}
|
||||
{1}# This is used to set name to the pulled image
|
||||
{0} {7},{0} {6}finalImageName{0} {7}?{0} {6}imageName{0}
|
||||
{1}# This used to set a tag to the pulled image
|
||||
{0} {7},{0} {6}finalImageTag{0} {7}?{0} {3}"latest"{0}
|
||||
{1}# This is used to disable TLS certificate verification, allowing access to http registries on (hopefully) trusted networks
|
||||
{0} {7},{0} {6}tlsVerify{0} {7}?{0} {13}true{0}
|
||||
|
||||
{7},{0} {6}name{0} {7}?{0} {6}fixName{0} {3}"docker-image-{8}${{6}finalImageName{8}}{3}-{8}${{6}finalImageTag{8}}{3}.tar"{0}
|
||||
{7}}:{0}
|
||||
|
||||
{15}runCommand{0} {6}name{0}
|
||||
{7}{{0}
|
||||
{12}inherit{0} {6}imageDigest{7};{0}
|
||||
{10}imageName{0} {7}={0} {6}finalImageName{7};{0}
|
||||
{10}imageTag{0} {7}={0} {6}finalImageTag{7};{0}
|
||||
{10}impureEnvVars{0} {7}={0} {6}lib{7}.{6}fetchers{7}.{6}proxyImpureEnvVars{7};{0}
|
||||
{10}outputHashMode{0} {7}={0} {3}"flat"{7};{0}
|
||||
{10}outputHashAlgo{0} {7}={0} {3}"sha256"{7};{0}
|
||||
{10}outputHash{0} {7}={0} {6}sha256{7};{0}
|
||||
|
||||
{10}nativeBuildInputs{0} {7}={0} {7}[{0} {6}skopeo{0} {7}];{0}
|
||||
{10}SSL_CERT_FILE{0} {7}={0} {3}"{8}${{6}cacert{7}.{6}out{8}}{3}/etc/ssl/certs/ca-bundle.crt"{7};{0}
|
||||
|
||||
{10}sourceURL{0} {7}={0} {3}"docker://{8}${{6}imageName{8}}{3}@{8}${{6}imageDigest{8}}{3}"{7};{0}
|
||||
{10}destNameTag{0} {7}={0} {3}"{8}${{6}finalImageName{8}}{3}:{8}${{6}finalImageTag{8}}{3}"{7};{0}
|
||||
{7}}{0} {4}''
|
||||
skopeo \
|
||||
--insecure-policy \
|
||||
--tmpdir=$TMPDIR \
|
||||
--override-os {8}${{6}os{8}}{4} \
|
||||
--override-arch {8}${{6}arch{8}}{4} \
|
||||
copy \
|
||||
--src-tls-verify={8}${{6}lib{7}.{6}boolToString{0} {6}tlsVerify{8}}{4} \
|
||||
"$sourceURL" "docker-archive://$out:$destNameTag" \
|
||||
| cat # pipe through cat to force-disable progress bar
|
||||
''{7};{0}
|
||||
|
||||
{7}}{0}
|
||||
|
||||
{10}message{0} {7}={0} {16}"unterminated string;
|
||||
{10}message2{0} {7}={0} {16}"unterminated string;
|
7
3rdparty/lexilla545/lexilla/test/examples/nix/SciTE.properties
vendored
Normal file
7
3rdparty/lexilla545/lexilla/test/examples/nix/SciTE.properties
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
lexer.*.nix=nix
|
||||
fold=1
|
||||
|
||||
keywords.*.nix=assert else if in inherit let or rec then with
|
||||
keywords2.*.nix=false null true
|
||||
keywords3.*.nix=abort add addDrvOutputDependencies all any attrNames attrValues baseNameOf bitAnd bitOr bitXor break builtins catAttrs ceil compareVersions concatLists concatMap concatStringsSep convertHash currentSystem currentTime deepSeq derivation dirOf div elem elemAt fetchClosure fetchGit fetchTarball fetchTree fetchurl filter filterSource findFile flakeRefToString floor foldl' fromJSON fromTOML functionArgs genList genericClosure getAttr getContext getEnv getFlake groupBy hasAttr hasContext hashFile hashString head import intersectAttrs isAttrs isBool isFloat isFunction isInt isList isNull isPath isString langVersion length lessThan listToAttrs map mapAttrs match mul nixPath nixVersion outputOf parseDrvName parseFlakeRef partition path pathExists placeholder readDir readFile readFileType removeAttrs replaceStrings seq sort split splitVersion storeDir storePath stringLength sub substring tail throw toFile toJSON toPath toString toXML trace traceVerbose tryEval typeOf unsafeDiscardOutputDependency unsafeDiscardStringContext warn zipAttrsWith
|
||||
keywords4.*.nix=runCommand
|
Reference in New Issue
Block a user