uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,74 @@
|
|||
{ pkgs
|
||||
, stdenv
|
||||
, lib
|
||||
, jre
|
||||
, fetchFromGitHub
|
||||
, writeShellScript
|
||||
, runCommand
|
||||
, imagemagick
|
||||
}:
|
||||
|
||||
# To test:
|
||||
# $(nix-build --no-out-link -E 'with import <nixpkgs> {}; jupyter.override { definitions = { clojure = clojupyter.definition; }; }')/bin/jupyter-notebook
|
||||
|
||||
let
|
||||
cljdeps = import ./deps.nix { inherit pkgs; };
|
||||
classp = cljdeps.makeClasspaths {};
|
||||
|
||||
shellScript = writeShellScript "clojupyter" ''
|
||||
${jre}/bin/java -cp ${classp} clojupyter.kernel.core "$@"
|
||||
'';
|
||||
|
||||
pname = "clojupyter";
|
||||
version = "0.3.3";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Jupyter kernel for Clojure";
|
||||
homepage = "https://github.com/clojupyter/clojupyter";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ]; # deps from maven
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ thomasjm ];
|
||||
platforms = jre.meta.platforms;
|
||||
};
|
||||
|
||||
sizedLogo = size: stdenv.mkDerivation {
|
||||
name = "clojupyter-logo-${size}x${size}.png";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "clojupyter";
|
||||
repo = "clojupyter";
|
||||
rev = version;
|
||||
sha256 = "sha256-BCzcPnLSonm+ELFU4JIIzLPlVnP0VzlrRSGxOd/LFow=";
|
||||
};
|
||||
|
||||
buildInputs = [ imagemagick ];
|
||||
|
||||
dontConfigure = true;
|
||||
dontInstall = true;
|
||||
|
||||
buildPhase = ''
|
||||
convert ./resources/clojupyter/assets/logo-64x64.png -resize ${size}x${size} $out
|
||||
'';
|
||||
|
||||
inherit meta;
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
rec {
|
||||
launcher = runCommand "clojupyter" { inherit pname version meta shellScript; } ''
|
||||
mkdir -p $out/bin
|
||||
ln -s $shellScript $out/bin/clojupyter
|
||||
'';
|
||||
|
||||
definition = {
|
||||
displayName = "Clojure";
|
||||
argv = [
|
||||
"${launcher}/bin/clojupyter"
|
||||
"{connection_file}"
|
||||
];
|
||||
language = "clojure";
|
||||
logo32 = sizedLogo "32";
|
||||
logo64 = sizedLogo "64";
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{:deps {clojupyter/clojupyter {:mvn/version "0.3.3"}}}
|
||||
1107
pkgs/applications/editors/jupyter-kernels/clojupyter/deps.nix
generated
Normal file
1107
pkgs/applications/editors/jupyter-kernels/clojupyter/deps.nix
generated
Normal file
File diff suppressed because it is too large
Load diff
16
pkgs/applications/editors/jupyter-kernels/clojupyter/update.sh
Executable file
16
pkgs/applications/editors/jupyter-kernels/clojupyter/update.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
### To update clj2nix
|
||||
# $ nix-prefetch-github hlolli clj2nix
|
||||
|
||||
nix-shell --run "clj2nix deps.edn deps.nix" -E '
|
||||
with import ../../../../.. { };
|
||||
mkShell {
|
||||
buildInputs = [(callPackage (fetchFromGitHub {
|
||||
owner = "hlolli";
|
||||
repo = "clj2nix";
|
||||
rev = "b9a28d4a920d5d680439b1b0d18a1b2c56d52b04";
|
||||
sha256 = "0d8xlja62igwg757lab9ablz1nji8cp9p9x3j0ihqvp1y48w2as3";
|
||||
}) {})];
|
||||
}
|
||||
'
|
||||
Loading…
Add table
Add a link
Reference in a new issue