+++ /dev/null
-{
- "tag": "780e33a-master",
- "meta": {
- "name": "yarn2nix",
- "url": "https://github.com/moretea/yarn2nix",
- "branch": "master"
- },
- "github": {
- "owner": "moretea",
- "repo": "yarn2nix",
- "rev": "780e33a07fd821e09ab5b05223ddb4ca15ac663f",
- "sha256": "1f83cr9qgk95g3571ps644rvgfzv2i4i7532q8pg405s4q5ada3h",
- "fetchSubmodules": true
- }
-}
{ nixpkgs }:
with nixpkgs;
rec {
+ yarn2nixPackage = let
+ src = fetchFromGitHub {
+ owner = "moretea";
+ repo = "yarn2nix";
+ rev = "780e33a07fd821e09ab5b05223ddb4ca15ac663f";
+ sha256 = "1f83cr9qgk95g3571ps644rvgfzv2i4i7532q8pg405s4q5ada3h";
+ fetchSubmodules = true;
+ };
+ in
+ (callPackage src {}) // { inherit src; };
+
fetchedGithub = path:
let
json = lib.importJSON path;
makeWrapper "$f" "$out" ${toString args}
'';
- yarn2nixPackage = callPackage (fetchedGithub ./fetched/yarn2nix.json).src {};
}
inherit (pkgs.buildbot-pkg) version;
packageJSON = "${buildslist_src.src}/package.json";
yarnLock = "${buildslist_src.src}/yarn.lock";
+ pkgConfig = {
+ all = { buildInputs = [ mylibs.yarn2nixPackage.src ]; };
+ };
};
buildslist_bower = pkgs.buildBowerComponents {
name = "buildslist";
packageJSON = packagejson;
yarnLock = "${info.src}/yarn.lock";
pkgConfig = {
+ all = {
+ buildInputs = [ yarn2nixPackage.src ];
+ };
node-sass = {
buildInputs = [ libsass python ];
postInstall = let
yarnLock = "${info.src}/yarn.lock";
yarnNix = ./yarn-packages.nix;
pkgConfig = {
+ all = {
+ buildInputs = [ yarn2nixPackage.src ];
+ };
uws = {
postInstall = ''
npx node-gyp rebuild > build_log.txt 2>&1 || true