Skip to content

Instantly share code, notes, and snippets.

@countoren

countoren/shell.nix

Last active Dec 2, 2018
Embed
What would you like to do?
with import <nixpkgs> {};
let
nixpkgs18_11 = import (fetchFromGitHub {
owner="NixOS";
repo="nixpkgs";
rev="866b1dbedaf84a0cc5721c475ec4196dc76ae906";
sha256="1kblflrvb4yqhkz9pdfkb33q4kzvkxf5ggl6b271qs7s2z1hn7j4";
}) {};
vsCodeApps = [
nixpkgs18_11.fsharp
nixpkgs18_11.mono
];
vscode =
#buildVSCode can be found in https://github.com/countoren/nixpkgs/blob/master/config.nix
buildVSCode {
additionalPostFixup = ''
wrapProgram $out/bin/code --prefix PATH : ${lib.makeBinPath vsCodeApps}
'';
vscodeMatketExtensions = [
{
name = "vim";
publisher = "vscodevim";
version = "0.16.9";
sha256 = "0y12asjx3z3wlpb6vdh7qnl5qkf439rv790pf9wlyigay2ayv73b";
}
# FSharp
{
name = "ionide-fsharp";
publisher = "ionide";
version = "3.30.0";
sha256 = "0ig9zmbyfmxvjfjnn1f108vpij9q3qzh74b3gwr12kziiy3qmiyi";
}
];
};
in
stdenv.mkDerivation rec {
name = "fsTest";
buildInputs = [
figlet
nixpkgs18_11.git
nixpkgs18_11.fsharp
]
++ vscode.buildInputs;
shellHook = ''
figlet "wellcome to FS test"
''
+ vscode.shellHook;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.