aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-17 13:45:37 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-17 13:45:37 +0100
commit7636abc6bfcdca34d4b90a144365235012275339 (patch)
tree82d753ceea1f753d1bffe89901f966eb2cd1cdbb
parentfe6f1528cd4df919fbd65005b9499be2da87ff0a (diff)
downloadNix-7636abc6bfcdca34d4b90a144365235012275339.tar.gz
Nix-7636abc6bfcdca34d4b90a144365235012275339.tar.zst
Nix-7636abc6bfcdca34d4b90a144365235012275339.zip
Use more up to date version of yarn2nix
-rw-r--r--default.nix2
-rw-r--r--fetched/yarn2nix.json15
-rw-r--r--libs.nix4
-rw-r--r--nixops/eldiron.nix1
-rwxr-xr-xscripts/make-env2
5 files changed, 21 insertions, 3 deletions
diff --git a/default.nix b/default.nix
index 5e8c4d3..d003e90 100644
--- a/default.nix
+++ b/default.nix
@@ -310,6 +310,7 @@ let
310 (with perlPackages; [ TimeDate FileWhich TextIconv ]); 310 (with perlPackages; [ TimeDate FileWhich TextIconv ]);
311 }; 311 };
312 312
313 mypkgs.yarn2nix = yarn2nixPackage.yarn2nix;
313# https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh 314# https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
314# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks 315# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks
315in 316in
@@ -372,6 +373,5 @@ in
372 inherit notmuch; 373 inherit notmuch;
373 stgit = gitAndTools.stgit; 374 stgit = gitAndTools.stgit;
374 inherit bundix; 375 inherit bundix;
375 inherit yarn2nix;
376 bower2nix = nodePackages.bower2nix; 376 bower2nix = nodePackages.bower2nix;
377 }) 377 })
diff --git a/fetched/yarn2nix.json b/fetched/yarn2nix.json
new file mode 100644
index 0000000..81914e3
--- /dev/null
+++ b/fetched/yarn2nix.json
@@ -0,0 +1,15 @@
1{
2 "tag": "780e33a-master",
3 "meta": {
4 "name": "yarn2nix",
5 "url": "https://github.com/moretea/yarn2nix",
6 "branch": "master"
7 },
8 "github": {
9 "owner": "moretea",
10 "repo": "yarn2nix",
11 "rev": "780e33a07fd821e09ab5b05223ddb4ca15ac663f",
12 "sha256": "1f83cr9qgk95g3571ps644rvgfzv2i4i7532q8pg405s4q5ada3h",
13 "fetchSubmodules": true
14 }
15}
diff --git a/libs.nix b/libs.nix
index 57b0f64..0b5e0c1 100644
--- a/libs.nix
+++ b/libs.nix
@@ -7,7 +7,7 @@ let nixpkgs_unstable = import (builtins.fetchTarball {
7}) {}; 7}) {};
8in 8in
9 with nixpkgs_unstable; 9 with nixpkgs_unstable;
10{ 10rec {
11 inherit nixpkgs_unstable; 11 inherit nixpkgs_unstable;
12 fetchedGithub = path: 12 fetchedGithub = path:
13 let 13 let
@@ -53,4 +53,6 @@ in
53 '' 53 ''
54 makeWrapper "$f" "$out" ${toString args} 54 makeWrapper "$f" "$out" ${toString args}
55 ''; 55 '';
56
57 yarn2nixPackage = callPackage (fetchedGithub ./fetched/yarn2nix.json).src {};
56} 58}
diff --git a/nixops/eldiron.nix b/nixops/eldiron.nix
index 2376e54..d6915c2 100644
--- a/nixops/eldiron.nix
+++ b/nixops/eldiron.nix
@@ -10,6 +10,7 @@
10 { 10 {
11 _module.args = { 11 _module.args = {
12 mylibs = import ../libs.nix; 12 mylibs = import ../libs.nix;
13 mypkgs = import ../default.nix;
13 myconfig = { 14 myconfig = {
14 env = import environment; 15 env = import environment;
15 ips = { 16 ips = {
diff --git a/scripts/make-env b/scripts/make-env
index d374c31..ec10865 100755
--- a/scripts/make-env
+++ b/scripts/make-env
@@ -1,3 +1,3 @@
1#!/bin/bash 1#!/bin/bash
2 2
3nix-env -r -i -A immaePackages -f "<nixpkgs>" 3nix-env -r -i -A immaePackages -f "<nixpkgs>" "$@"