aboutsummaryrefslogtreecommitdiff
path: root/org.nixos.nix/org.nixos.nix.json
blob: 4bac2ae0cbb39ef6f5435fd275b783616d08c0bb (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
{
  "app-id": "org.nixos.nix",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "22.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "run",
  "finish-args": [
    "--share=network",
    "--env=NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt",
    "--env=PATH=~/.nix-profile/bin:/app/bin:/usr/bin"
  ],
  "modules": [
    {
      "name": "nix",
      "buildsystem": "simple",
      "sources": [
        {
          "type": "file",
          "path": "./install.sh"
        },
        {
          "type": "file",
          "path": "./sudo"
        },
        {
          "type": "file",
          "path": "./run.sh"
        }
      ],
      "build-commands": [
        "mkdir /app/bin",
        "install -Dm755 sudo /app/bin/sudo",
        "install -Dm755 ./install.sh /app/bin/install.sh",
        "install -Dm755 ./run.sh /app/bin/run"
      ]
    }
  ]
}