diff options
author | EuAndreh <eu@euandre.org> | 2018-12-06 12:18:48 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-12-06 12:18:48 -0200 |
commit | f2cc7b046501ebbf4c3b26018d0f964625e16d1a (patch) | |
tree | 76c2b872785f41230fde296c323a91acd01624c4 /nixos | |
parent | Add mail files to GC routine. (diff) | |
download | dotfiles-f2cc7b046501ebbf4c3b26018d0f964625e16d1a.tar.gz dotfiles-f2cc7b046501ebbf4c3b26018d0f964625e16d1a.tar.xz |
WIP: add custom version of Node.js.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/configuration.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 5a4a52d..e94b782 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -73,12 +73,23 @@ url = "https://github.com/NixOS/nixpkgs/archive/18.03.zip"; sha256 = "0hk4y2vkgm1qadpsm4b0q1vxq889jhxzjx3ragybrlwwg54mzp4f"; }) {}; + timidityWithEvenMoreFormats = with pkgs; timidity.overrideAttrs (oldAttrs: { configureFlags = oldAttrs.configureFlags ++ [ "--enable-audio=vorbis,flac" ]; buildInputs = oldAttrs.buildInputs ++ [ libogg libvorbis flac ]; }); + + # https://github.com/nixos/nixpkgs/blob/0d202221f98e500f1df79112dc464d013eefcdae/pkgs/development/web/nodejs/v10.nix#L4 + buildNodejs = pkgs.callPackage <nixpkgs/pkgs/development/web/nodejs/nodejs.nix> {}; + nodejs-10_14_1 = buildNodejs { + enableNpm = true; + version = "10.14.1"; + sha256 = "0d5hg8hf4c1sshh77a6hy944bzm3q3ipqggbyim61q3r2szngvrx"; + # Uses HTTPS (https://github.com/nixos/nixpkgs/blob/0d202221f98e500f1df79112dc464d013eefcdae/pkgs/development/web/nodejs/nodejs.nix#L45), safer to trust the hash (unless it's already compromised :shrug:) + }; in with pkgs; [ - pkgsUnstable.nodejs-10_x + pkgsUnstable.nodejs-10_x + # nodejs-10_14_1 ## Personal data tools |