Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
soicode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Timon Stampfli
soicode
Commits
eb36aa53
Commit
eb36aa53
authored
Nov 06, 2020
by
Timon Stampfli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nix config for vscode with testing pluginset
parent
0e175b9f
Pipeline
#5694
passed with stages
in 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
0 deletions
+124
-0
codium-test.nix
codium-test.nix
+49
-0
helper/deps.nix
helper/deps.nix
+75
-0
No files found.
codium-test.nix
0 → 100644
View file @
eb36aa53
let
pinnedPkgs
=
import
(
/home/timon/rep/config/config-pin.nix
);
desktopUnstablePkgs
=
pinnedPkgs
.
desktop-unstable
{
config
.
pulseaudio
=
true
;
config
.
allowUnfree
=
true
;
};
pkgs
=
desktopUnstablePkgs
;
version
=
"0.8.30"
;
helperBinary
=
pkgs
.
buildGoPackage
rec
{
name
=
"helperbinary-
${
version
}
"
;
src
=
./.
;
goPackagePath
=
[
"git.dolansoft.org/timon/soicode"
];
goDeps
=
./helper/deps.nix
;
};
soicodePlugin
=
pkgs
.
vscode-utils
.
buildVscodeExtension
{
name
=
"soicode-
${
version
}
"
;
vscodeExtUniqueId
=
"swissolyinfo.soicode"
;
src
=
./.
;
buildInputs
=
[
pkgs
.
nodejs
pkgs
.
stdenv
pkgs
.
go
];
configurePhase
=
"patchShebangs node_modules"
;
buildPhase
=
''
cp
${
helperBinary
}
/bin/helper ./dist/helper-linux-amd64
npm run build-package
''
;
meta
=
with
pkgs
.
stdenv
.
lib
;
{
license
=
licenses
.
mit
;
platforms
=
[
"x86_64-linux"
];
};
};
codiumPlugins
=
pkgs
.
buildEnv
{
name
=
"codium-extensions"
;
paths
=
(
pkgs
.
vscode-utils
.
extensionsFromVscodeMarketplace
[{
name
=
"vim"
;
publisher
=
"vscodevim"
;
version
=
"1.12.2"
;
sha256
=
"1a4r07xijrnz7bxkkpl2njwv2128hcwvmqvmirw4v41paw559231"
;
}])
++
[
pkgs
.
vscode-extensions
.
ms-vscode
.
cpptools
]
++
[
(
soicodePlugin
)
];
};
codiumCommand
=
(
pkgs
.
writeScriptBin
"coTest"
''
#!
${
pkgs
.
stdenv
.
shell
}
exec
${
pkgs
.
vscodium
}
/bin/codium --extensions-dir
${
codiumPlugins
}
/share/vscode/extensions $@
''
);
in
pkgs
.
mkShell
{
buildInputs
=
[
(
codiumCommand
)
];
}
helper/deps.nix
0 → 100644
View file @
eb36aa53
# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix)
[
{
goPackagePath
=
"github.com/BurntSushi/toml"
;
fetch
=
{
type
=
"git"
;
url
=
"https://github.com/BurntSushi/toml"
;
rev
=
"v0.3.1"
;
sha256
=
"1fjdwwfzyzllgiwydknf1pwjvy49qxfsczqx5gz3y0izs7as99j6"
;
};
}
{
goPackagePath
=
"github.com/cenkalti/backoff"
;
fetch
=
{
type
=
"git"
;
url
=
"https://github.com/cenkalti/backoff"
;
rev
=
"v2.0.0"
;
sha256
=
"0k4899ifpir6kmfxli8a2xfj5zdh0xb2jd0fq2r38wzd4pk25ipr"
;
};
}
{
goPackagePath
=
"github.com/fatih/color"
;
fetch
=
{
type
=
"git"
;
url
=
"https://github.com/fatih/color"
;
rev
=
"v1.7.0"
;
sha256
=
"0v8msvg38r8d1iiq2i5r4xyfx0invhc941kjrsg5gzwvagv55inv"
;
};
}
{
goPackagePath
=
"github.com/mattn/go-colorable"
;
fetch
=
{
type
=
"git"
;
url
=
"https://github.com/mattn/go-colorable"
;
rev
=
"v0.1.4"
;
sha256
=
"1yxcz08kminqr1221zxpibnbzfcgs3fafin0z9zqb3gqvf74jywz"
;
};
}
{
goPackagePath
=
"github.com/mattn/go-isatty"
;
fetch
=
{
type
=
"git"
;
url
=
"https://github.com/mattn/go-isatty"
;
rev
=
"v0.0.9"
;
sha256
=
"0i3km37lajahh1y2392g4hpgvq05arcgiiv93yhzxxyv0fpqj72m"
;
};
}
{
goPackagePath
=
"github.com/ulikunitz/xz"
;
fetch
=
{
type
=
"git"
;
url
=
"https://github.com/ulikunitz/xz"
;
rev
=
"v0.5.4"
;
sha256
=
"0a6l7sp67ipxim093qh6fvw8knbxj24l7bj5lykcddi5gwfi78n3"
;
};
}
{
goPackagePath
=
"golang.org/x/net"
;
fetch
=
{
type
=
"git"
;
url
=
"https://go.googlesource.com/net"
;
rev
=
"146acd28ed58"
;
sha256
=
"0d177474z85nvxz8ch6y9wjqz288844wwx8q9za3x2njnk4jbgxj"
;
};
}
{
goPackagePath
=
"golang.org/x/sys"
;
fetch
=
{
type
=
"git"
;
url
=
"https://go.googlesource.com/sys"
;
rev
=
"fde4db37ae7a"
;
sha256
=
"16k4w4pzziq1kln18k5fg01qgk4hpzb5xsm7175kaky6d6gwyhg3"
;
};
}
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment