FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
opencode/flake.nix at soar · soar/opencode · GitHub
soar
/
opencode
Public
forked from
anomalyco/opencode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
opencode
/
flake.nix
Copy path
More file actions
More file actions
Latest commit
History
History
History
76 lines (72 loc) · 1.87 KB
Breadcrumbs
opencode
/
flake.nix
Copy path
File metadata and controls
76 lines (72 loc) · 1.87 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
{
description
=
"OpenCode development flake"
;
inputs
=
{
nixpkgs
.
url
=
"github:NixOS/nixpkgs/nixpkgs-unstable"
;
}
;
outputs
=
{
self
,
nixpkgs
,
...
}
:
let
systems
=
[
"aarch64-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
]
;
forEachSystem
=
f
:
nixpkgs
.
lib
.
genAttrs
systems
(
system
:
f
nixpkgs
.
legacyPackages
.
${
system
}
)
;
rev
=
self
.
shortRev
or
self
.
dirtyShortRev
or
"dirty"
;
in
{
devShells
=
forEachSystem
(
pkgs
:
{
default
=
pkgs
.
mkShell
{
packages
=
with
pkgs
;
[
bun
nodejs_20
pkg-config
openssl
git
]
;
}
;
}
)
;
overlays
=
{
default
=
final
:
_prev
:
let
node_modules
=
final
.
callPackage
./nix/node_modules.nix
{
inherit
rev
;
}
;
opencode
=
final
.
callPackage
./nix/opencode.nix
{
inherit
node_modules
;
}
;
desktop
=
final
.
callPackage
./nix/desktop.nix
{
inherit
opencode
;
}
;
in
{
inherit
opencode
;
opencode-desktop
=
desktop
;
}
;
}
;
packages
=
forEachSystem
(
pkgs
:
let
node_modules
=
pkgs
.
callPackage
./nix/node_modules.nix
{
inherit
rev
;
}
;
opencode
=
pkgs
.
callPackage
./nix/opencode.nix
{
inherit
node_modules
;
}
;
desktop
=
pkgs
.
callPackage
./nix/desktop.nix
{
inherit
opencode
;
}
;
in
{
default
=
opencode
;
inherit
opencode
desktop
;
# Updater derivation with fakeHash - build fails and reveals correct hash
node_modules_updater
=
node_modules
.
override
{
hash
=
pkgs
.
lib
.
fakeHash
;
}
;
}
)
;
}
;
}
Back
|
FazBrowse Home
|
New Git URL