Skip to content

Commit

Permalink
fix: tweag#527 missing logo file
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Oct 19, 2023
1 parent 63ad756 commit 6cbb6c7
Show file tree
Hide file tree
Showing 30 changed files with 35 additions and 35 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Jupyter :heart: Nix

<p float="left">
<img src="modules/kernels/bash/logo64.png" width="45" />
<img src="modules/kernels/c/logo64.png" width="45" />
<img src="modules/kernels/elm/logo64.png" width="45" />
<img src="modules/kernels/go/logo64.png" width="45" />
<img src="modules/kernels/haskell/logo64.png" width="45" />
<img src="modules/kernels/python/logo64.png" width="45" />
<img src="modules/kernels/javascript/logo64.png" width="45" />
<img src="modules/kernels/julia/logo64.png" width="45" />
<img src="modules/kernels/nix/logo64.png" width="45" />
<img src="modules/kernels/ocaml/logo64.png" width="45" />
<img src="modules/kernels/postgres/logo64.png" width="45" />
<img src="modules/kernels/r/logo64.png" width="45" />
<img src="modules/kernels/rust/logo64.png" width="45" />
<img src="modules/kernels/scala/logo64.png" width="45" />
<img src="modules/kernels/typescript/logo64.png" width="45" />
<img src="modules/kernels/zsh/logo64.png" width="45" />
<img src="modules/kernels/bash/logo-64x64.png" width="45" />
<img src="modules/kernels/c/logo-64x64.png" width="45" />
<img src="modules/kernels/elm/logo-64x64.png" width="45" />
<img src="modules/kernels/go/logo-64x64.png" width="45" />
<img src="modules/kernels/haskell/logo-64x64.png" width="45" />
<img src="modules/kernels/python/logo-64x64.png" width="45" />
<img src="modules/kernels/javascript/logo-64x64.png" width="45" />
<img src="modules/kernels/julia/logo-64x64.png" width="45" />
<img src="modules/kernels/nix/logo-64x64.png" width="45" />
<img src="modules/kernels/ocaml/logo-64x64.png" width="45" />
<img src="modules/kernels/postgres/logo-64x64.png" width="45" />
<img src="modules/kernels/r/logo-64x64.png" width="45" />
<img src="modules/kernels/rust/logo-64x64.png" width="45" />
<img src="modules/kernels/scala/logo-64x64.png" width="45" />
<img src="modules/kernels/typescript/logo-64x64.png" width="45" />
<img src="modules/kernels/zsh/logo-64x64.png" width="45" />
</p>

This repository provides a Nix-based framework for the definition of
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ in
];
codemirrorMode = "language mode";
logo32 = ./logo32.png;
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
}
```
14 changes: 7 additions & 7 deletions lib/kernels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,18 @@
let
kernelInstance = {
name = "pythontest";
logo64 = ./kernels/python/logo64.png;
logo64 = ./kernels/python/logo-64x64.png;
};
in
kernelLib.copyKernelLogos ["logo64"] kernelInstance
->
"cp /nix/store/<hash>-logo64.png $out/kernels/pythontest/logo64.png\n"
"cp /nix/store/<hash>-logo-64x64.png $out/kernels/pythontest/logo-64x64.png\n"
Example:
let
kernelInstance = {
name = "pythontest";
logo64 = ./kernels//python/logo64.png;
logo64 = ./kernels//python/logo-64x64.png;
};
in
kernelLib.copyKernelLogos ["logo32"] kernelInstance
Expand Down Expand Up @@ -222,7 +222,7 @@
name = "pythontest";
displayName = "Python Test";
codemirrorMode = "python";
logo64 = ./kernels/python/logo64.png;
logo64 = ./kernels/python/logo-64x64.png;
};
in
kernelLib.fixKernelJSON ["logo64" "logo32"] kernelInstance
Expand All @@ -231,7 +231,7 @@
name = "pythontest";
display_name = "Python Test";
codemirror_mode = "python";
logo64 = "logo64.png";
logo64 = "logo-64x64.png";
}
*/
Expand Down Expand Up @@ -270,12 +270,12 @@
name = "pythontest";
displayName = "Python Test";
codemirrorMode = "python";
logo64 = ./kernels/python/logo64.png;
logo64 = ./kernels/python/logo-64x64.png;
};
in
kernelLib.fixKernelJSON ["logo64" "logo32"] kernelInstance
->
"echo '{\"codemirror_mode\":\"python\",\"display_name\":\"Python Test\",\"logo64\":\"logo64.png\",\"name\":\"pythontest\"}' > $out/kernels/pythontest/kernel.json\n"
"echo '{\"codemirror_mode\":\"python\",\"display_name\":\"Python Test\",\"logo64\":\"logo-64x64.png\",\"name\":\"pythontest\"}' > $out/kernels/pythontest/kernel.json\n"
*/
copyKernelSpec = kernelLogos: kernelInstance: let
kernelSpec = createKernelSpec kernelLogos kernelInstance;
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/go/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"{connection_file}"
];
codemirrorMode = "go";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/haskell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# See https://github.com/IHaskell/IHaskell/pull/1191
argv = kernelspec.argv ++ ["--codemirror" "Haskell"];
codemirrorMode = "Haskell";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/javascript/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"{connection_file}"
];
codemirrorMode = "javascript";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/julia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"{connection_file}"
];
codemirrorMode = "julia";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"{connection_file}"
];
codemirrorMode = "nix";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/ocaml/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"{connection_file}"
];
codemirrorMode = "ocaml";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/r/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"{connection_file}"
];
codemirrorMode = "R";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/rust/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"{connection_file}"
];
codemirrorMode = "rust";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
logo32 = ./logo32.png;
};
in {
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/scala/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"{connection_file}"
];
codemirrorMode = "scala";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion modules/kernels/typescript/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"{connection_file}"
];
codemirrorMode = "typescript";
logo64 = ./logo64.png;
logo64 = ./logo-64x64.png;
};
in {
options =
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion modules/poetry.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"-f"
"{connection_file}"
];
logo64 = projectDir + "/logo64.png";
logo64 = projectDir + "/logo-64x64.png";
};
in {
options =
Expand Down

0 comments on commit 6cbb6c7

Please sign in to comment.