Skip to content

Instantly share code, notes, and snippets.

@ronenlh
Last active October 11, 2021 09:49
Show Gist options
  • Save ronenlh/e6a7eedcd399b6189ff58caa18dabf23 to your computer and use it in GitHub Desktop.
Save ronenlh/e6a7eedcd399b6189ff58caa18dabf23 to your computer and use it in GitHub Desktop.
{ }:
let
pkgs = import (builtins.fetchGit {
name = "nixpkgs-with-cmake-3.18.2";
url = "https://github.com/NixOS/nixpkgs/";
ref = "refs/heads/nixpkgs-unstable";
rev = "2c162d49cd5b979eb66ff1653aecaeaa01690fcc";
}) {};
pkgs_ninja = import (builtins.fetchGit {
name = "nixpkgs-with-ninja-1.9.0";
url = "https://github.com/NixOS/nixpkgs/";
ref = "refs/heads/nixpkgs-unstable";
rev = "2158ec610d90359df7425e27298873a817b4c9dd";
}) {};
in
pkgs.mkShell {
nativeBuildInputs = [
pkgs.buildPackages.cowsay
pkgs.buildPackages.nodejs-12_x # 12.18.4
pkgs.buildPackages.yarn # 1.22.5
pkgs.buildPackages.ruby # 2.6.6
pkgs.buildPackages.watchman # 4.9.0
pkgs.buildPackages.cmake # 3.18.2
pkgs_ninja.buildPackages.ninja # 1.9.0
];
shellHook = ''
cowsay "Hello $FOO"
'';
FOO = "World";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment