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
61
pkgs/applications/editors/jupyter-kernels/octave/default.nix
Normal file
61
pkgs/applications/editors/jupyter-kernels/octave/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, callPackage
|
||||
, runCommand
|
||||
, makeWrapper
|
||||
, octave
|
||||
, imagemagick
|
||||
, python3
|
||||
}:
|
||||
|
||||
# To test:
|
||||
# $(nix-build -E 'with import <nixpkgs> {}; jupyter.override { definitions = { octave = octave-kernel.definition; }; }')/bin/jupyter-notebook
|
||||
|
||||
let
|
||||
kernel = callPackage ./kernel.nix {
|
||||
python3Packages = python3.pkgs;
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
rec {
|
||||
launcher = runCommand "octave-kernel-launcher" {
|
||||
inherit octave;
|
||||
python = python3.withPackages (ps: [ ps.traitlets ps.jupyter_core ps.ipykernel ps.metakernel kernel ]);
|
||||
buildInputs = [ makeWrapper ];
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
makeWrapper $python/bin/python $out/bin/octave-kernel \
|
||||
--add-flags "-m octave_kernel" \
|
||||
--suffix PATH : $octave/bin
|
||||
'';
|
||||
|
||||
sizedLogo = size: stdenv.mkDerivation {
|
||||
pname = "octave-logo-${size}x${size}.png";
|
||||
inherit (octave) version;
|
||||
|
||||
src = octave.src;
|
||||
|
||||
buildInputs = [ imagemagick ];
|
||||
|
||||
dontConfigure = true;
|
||||
dontInstall = true;
|
||||
|
||||
buildPhase = ''
|
||||
convert ./libgui/src/icons/logo.png -resize ${size}x${size} $out
|
||||
'';
|
||||
};
|
||||
|
||||
definition = {
|
||||
displayName = "Octave";
|
||||
argv = [
|
||||
"${launcher}/bin/octave-kernel"
|
||||
"-f"
|
||||
"{connection_file}"
|
||||
];
|
||||
language = "octave";
|
||||
logo32 = sizedLogo "32";
|
||||
logo64 = sizedLogo "64";
|
||||
};
|
||||
}
|
||||
28
pkgs/applications/editors/jupyter-kernels/octave/kernel.nix
Normal file
28
pkgs/applications/editors/jupyter-kernels/octave/kernel.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, octave, python3Packages }:
|
||||
|
||||
with python3Packages;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "octave-kernel";
|
||||
version = "0.34.2";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "octave_kernel";
|
||||
inherit version;
|
||||
sha256 = "sha256-5ki2lekfK7frPsmPBIzYQOfANCUY9x+F2ZRAQSdPTxo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ metakernel ipykernel ];
|
||||
|
||||
# Tests fail because the kernel appears to be halting or failing to launch
|
||||
# There appears to be a similar problem with metakernel's tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Jupyter kernel for Octave.";
|
||||
homepage = "https://github.com/Calysto/octave_kernel";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ thomasjm ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue