diff options
Diffstat (limited to 'libs.nix')
-rw-r--r-- | libs.nix | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,6 +1,17 @@ | |||
1 | { nixpkgs }: | 1 | { nixpkgs }: |
2 | with nixpkgs; | 2 | with nixpkgs; |
3 | rec { | 3 | rec { |
4 | yarn2nixPackage = let | ||
5 | src = fetchFromGitHub { | ||
6 | owner = "moretea"; | ||
7 | repo = "yarn2nix"; | ||
8 | rev = "780e33a07fd821e09ab5b05223ddb4ca15ac663f"; | ||
9 | sha256 = "1f83cr9qgk95g3571ps644rvgfzv2i4i7532q8pg405s4q5ada3h"; | ||
10 | fetchSubmodules = true; | ||
11 | }; | ||
12 | in | ||
13 | (callPackage src {}) // { inherit src; }; | ||
14 | |||
4 | fetchedGithub = path: | 15 | fetchedGithub = path: |
5 | let | 16 | let |
6 | json = lib.importJSON path; | 17 | json = lib.importJSON path; |
@@ -46,5 +57,4 @@ rec { | |||
46 | makeWrapper "$f" "$out" ${toString args} | 57 | makeWrapper "$f" "$out" ${toString args} |
47 | ''; | 58 | ''; |
48 | 59 | ||
49 | yarn2nixPackage = callPackage (fetchedGithub ./fetched/yarn2nix.json).src {}; | ||
50 | } | 60 | } |