blob: b358326ab52e8cbc178208c4b6dfa057ffb258bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# NOTE: This file is for testing queries. If evaluated with nix, this will probably error.
{ pkgs, stdenv }: let
match = builtins.match;
in {
regex = builtins.match "^.*[{](.+)[}].*$" "blahblah {something} blahblah" [ "something" ];
regex2 = match "^.*[{](.+)[}].*$" "blahblah {something} blahblah" [ "something" ];
drv1 = stdenv.mkDerivation {
buildPhase = "mkdir $out";
installPhase = ''
echo "bar" > $out/foo.txt
'';
};
drv2 = pkgs.writeShellApplication {
name = "shellApp";
buildInputs = [];
text = ''
echo "Hello world!"
'';
};
drv3 = pkgs.runCommand "foo-bar" {} ''
mkir $out
echo "bar" > $out/foo.txt
'';
drv4 = pkgs.runCommandNoCC "foo-bar" {} ''
mkir $out
echo "bar" > $out/foo.txt
'';
drv5 = pkgs.writeShellScriptBin "hello" ''
echo "Hello world!"
'';
drv6 = pkgs.writeFishBin "hello" ''
echo "Hello world!"
'';
drv7 = pkgs.writeHaskellBin "hello" ''
main :: IO ()
main = putStrLn "Hello world!"
'';
drv8 = pkgs.writeJSBin "hello" ''
console.log('Hello world!');
'';
drv9 = pkgs.writePerlBin "hello" ''
print("Hello world!\n");
'';
drv10 = pkgs.writePythonBin "hello" ''
print("Hello world!");
'';
drv11 = pkgs.writeRustBin "hello" ''
fn main() {
println!("Hello world!");
}
'';
drv12 = {
nodes = null;
testScript = ''
print("Hello world!");
'';
};
mod1 = {
type = "lua";
config = ''
require('nvim-treesitter.config').setup()
'';
};
}
|