mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
remarkjs: use node2nix generated expressions
(cherry picked from commit 0f591992df
)
This commit is contained in:
parent
4cac903456
commit
fcbaf2bc23
@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, fetchgit, fetchurl, nodejs, nodePackages }:
|
||||
{ stdenv, lib, fetchgit, fetchurl, nodejs, phantomjs2, pkgs }:
|
||||
|
||||
with lib;
|
||||
|
||||
@ -11,6 +11,11 @@ let
|
||||
sha256 = "1yy8by15kfklw8lwh17z1swpj067q0skjjih12yawbryraig41m0";
|
||||
};
|
||||
|
||||
nodePackages = import ./nodepkgs.nix {
|
||||
inherit pkgs;
|
||||
inherit (stdenv) system;
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "remarkjs-${version}";
|
||||
|
||||
@ -21,20 +26,18 @@ in stdenv.mkDerivation rec {
|
||||
sha256 = "1a2il6aa0g9cnig56ykmq8lr626pbxlsllk6js41h6gcn214rw60";
|
||||
};
|
||||
|
||||
buildInputs = with nodePackages; [
|
||||
nodejs
|
||||
buildInputs = [ nodejs phantomjs2 ] ++ (with nodePackages; [
|
||||
marked
|
||||
browserify
|
||||
uglify-js
|
||||
less
|
||||
mocha
|
||||
mocha-phantomjs
|
||||
phantomjs
|
||||
#mocha-phantomjs
|
||||
should
|
||||
sinon
|
||||
jshint
|
||||
shelljs
|
||||
];
|
||||
]);
|
||||
|
||||
configurePhase = ''
|
||||
mkdir -p node_modules/.bin
|
||||
|
3
pkgs/development/web/remarkjs/generate.sh
Normal file
3
pkgs/development/web/remarkjs/generate.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
node2nix -i pkgs.json -c nodepkgs.nix -e ../../node-packages/node-env.nix
|
2954
pkgs/development/web/remarkjs/node-packages.nix
Normal file
2954
pkgs/development/web/remarkjs/node-packages.nix
Normal file
File diff suppressed because it is too large
Load Diff
16
pkgs/development/web/remarkjs/nodepkgs.nix
Normal file
16
pkgs/development/web/remarkjs/nodepkgs.nix
Normal file
@ -0,0 +1,16 @@
|
||||
# This file has been generated by node2nix 1.0.1. Do not edit!
|
||||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs"}:
|
||||
|
||||
let
|
||||
nodeEnv = import ../../node-packages/node-env.nix {
|
||||
inherit (pkgs) stdenv python utillinux runCommand writeTextFile;
|
||||
inherit nodejs;
|
||||
};
|
||||
in
|
||||
import ./node-packages.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
12
pkgs/development/web/remarkjs/pkgs.json
Normal file
12
pkgs/development/web/remarkjs/pkgs.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
"marked"
|
||||
, "browserify"
|
||||
, "uglify-js"
|
||||
, "less"
|
||||
, "mocha"
|
||||
, "mocha-phantomjs"
|
||||
, "should"
|
||||
, "sinon"
|
||||
, "jshint"
|
||||
, "shelljs"
|
||||
]
|
Loading…
Reference in New Issue
Block a user