Skip to content

Instantly share code, notes, and snippets.

@countoren
Last active December 2, 2018 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save countoren/294345b814626be1f4dc9706bedea55f to your computer and use it in GitHub Desktop.
Save countoren/294345b814626be1f4dc9706bedea55f to your computer and use it in GitHub Desktop.
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