mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +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:
commit
287a1de4cb
@ -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"];
|
||||
|
@ -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;});
|
||||
|
Loading…
Reference in New Issue
Block a user