1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

Merge pull request #50270 from hlolli/lumo-cljs2nix-import

use newer clj2nix which passes pkgs as an argument to deps.nix
This commit is contained in:
Silvan Mosberger 2018-11-13 04:06:13 +01:00 committed by GitHub
commit 287a1de4cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{ stdenv, lib, fetchurl, clojure,
nodejs, jre, unzip, nodePackages,
python, openssl }:
python, openssl, pkgs }:
let # packageJSON=./package.json;
version = "1.9.0";
@ -118,7 +118,7 @@ let # packageJSON=./package.json;
'';
cljdeps = import ./deps.nix;
cljdeps = import ./deps.nix { inherit pkgs; };
cljpaths = cljdeps.makePaths {};
classp = cljdeps.makeClasspaths {
extraClasspaths=["src/js" "src/cljs/bundled" "src/cljs/snapshot"];

View file

@ -1,5 +1,7 @@
# generated by clj2nix
let repos = [
# generated by clj2nix-1.0.3
{ pkgs ? import <nixpkgs> {} }:
let repos = [
"https://repo.clojars.org/"
"https://repo1.maven.org/"
"http://central.maven.org/maven2/"
@ -7,7 +9,7 @@ let repos = [
"http://oss.sonatype.org/content/repositories/public/"
"http://repo.typesafe.com/typesafe/releases/"
];
pkgs = import <nixpkgs> {};
in rec {
makePaths = {extraClasspaths ? []}: (builtins.map (dep: if builtins.hasAttr "jar" dep.path then dep.path.jar else dep.path) packages) ++ extraClasspaths;
makeClasspaths = {extraClasspaths ? []}: builtins.concatStringsSep ":" (makePaths {inherit extraClasspaths;});