lumo: use newer clj2nix which passes pkgs as an argument to deps.nix instead of import <pkgs>

This commit is contained in:
hlolli 2018-11-12 20:28:14 +01:00
parent a815f53c60
commit e6ed52e8a0
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;});