diff options
-rw-r--r-- | default.nix | 2 | ||||
-rw-r--r-- | fetched/yarn2nix.json | 15 | ||||
-rw-r--r-- | libs.nix | 4 | ||||
-rw-r--r-- | nixops/eldiron.nix | 1 | ||||
-rwxr-xr-x | scripts/make-env | 2 |
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 |
315 | in | 316 | in |
@@ -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 | } | ||
@@ -7,7 +7,7 @@ let nixpkgs_unstable = import (builtins.fetchTarball { | |||
7 | }) {}; | 7 | }) {}; |
8 | in | 8 | in |
9 | with nixpkgs_unstable; | 9 | with nixpkgs_unstable; |
10 | { | 10 | rec { |
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 | ||
3 | nix-env -r -i -A immaePackages -f "<nixpkgs>" | 3 | nix-env -r -i -A immaePackages -f "<nixpkgs>" "$@" |