Compare commits
2 commits
0cddc7cefc
...
a8f109231d
| Author | SHA1 | Date | |
|---|---|---|---|
| a8f109231d | |||
| 3c49532095 |
4 changed files with 69 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, custom-pkgs, ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./../programs/firefox.nix
|
./../programs/firefox.nix
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
tex-fmt
|
tex-fmt
|
||||||
woodpecker-cli
|
woodpecker-cli
|
||||||
(texlive.combine { inherit (texlive) scheme-basic latex-bin latexmk; })
|
(texlive.combine { inherit (texlive) scheme-basic latex-bin latexmk; })
|
||||||
|
custom-pkgs.ark
|
||||||
];
|
];
|
||||||
shellAliases = { code = "codium"; };
|
shellAliases = { code = "codium"; };
|
||||||
};
|
};
|
||||||
|
|
|
||||||
59
pkgs/ark.nix
Normal file
59
pkgs/ark.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "0.1.174";
|
||||||
|
sha256 = {
|
||||||
|
x86_64-linux = "sha256-fZnVR5V9VaCmj4tkCrYRv3ouKr0gFukyLdEqvcb1c/8=";
|
||||||
|
aarch64-linux = "sha256-yj7UHUqnnlTz9ZYsH0UHgnhDY7bBZzff09KbYwOINj8=";
|
||||||
|
darwin = "sha256-cI1Xrico/0SHbuPwYLQNS6crJbY5gaVuAR02u5O+NPc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
in with pkgs;
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ark";
|
||||||
|
inherit version;
|
||||||
|
src = {
|
||||||
|
x86_64-linux = fetchurl {
|
||||||
|
url =
|
||||||
|
"https://github.com/posit-dev/ark/releases/download/${version}/ark-${version}-linux-x64.zip";
|
||||||
|
sha256 = sha256.x86_64-linux;
|
||||||
|
};
|
||||||
|
aarch64-linux = fetchurl {
|
||||||
|
url =
|
||||||
|
"https://github.com/posit-dev/ark/releases/download/${version}/ark-${version}-linux-arm64.zip";
|
||||||
|
sha256 = sha256.aarch64-linux;
|
||||||
|
};
|
||||||
|
x86_64-darwin = fetchurl {
|
||||||
|
url =
|
||||||
|
"https://github.com/posit-dev/ark/releases/download/${version}/ark-${version}-darwin-universal.zip";
|
||||||
|
sha256 = sha256.darwin;
|
||||||
|
};
|
||||||
|
aarch64-darwin = fetchurl {
|
||||||
|
url =
|
||||||
|
"https://github.com/posit-dev/ark/releases/download/${version}/ark-${version}-darwin-universal.zip";
|
||||||
|
sha256 = sha256.darwin;
|
||||||
|
};
|
||||||
|
}.${stdenv.hostPlatform.system} or (throw
|
||||||
|
"Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
|
# Nix reports "unpacker appears to have produced no directories" without this
|
||||||
|
# line. Not sure why sc4pac doesn't need it when it is also a zip archive, but
|
||||||
|
# I found this article that pointed me to this line:
|
||||||
|
# https://sekun.net/blog/packaging-prebuilt-binaries-with-nix/
|
||||||
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ unzip ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
unzip $src -d $out/bin
|
||||||
|
chmod +x $out/bin/ark
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Ark is an R kernel for Jupyter notebooks";
|
||||||
|
homepage = "https://github.com/posit-dev/ark";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
ark = pkgs.callPackage ./ark.nix { };
|
||||||
sc4pac = pkgs.callPackage ./sc4pac.nix { };
|
sc4pac = pkgs.callPackage ./sc4pac.nix { };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,9 @@
|
||||||
name:
|
name:
|
||||||
- chromium
|
- chromium
|
||||||
- firefoxpwa
|
- firefoxpwa
|
||||||
|
- fontconfig-devel
|
||||||
|
- freetype-devel
|
||||||
|
- fribidi-devel
|
||||||
- ghostty
|
- ghostty
|
||||||
- inkscape
|
- inkscape
|
||||||
- jq
|
- jq
|
||||||
|
|
@ -60,6 +63,10 @@
|
||||||
- kdenlive
|
- kdenlive
|
||||||
- kdiff3
|
- kdiff3
|
||||||
- krita
|
- krita
|
||||||
|
- libjpeg-devel
|
||||||
|
- libpng-devel
|
||||||
|
- libtiff-devel
|
||||||
|
- libwebp-devel
|
||||||
- musescore
|
- musescore
|
||||||
- nextcloud-client
|
- nextcloud-client
|
||||||
- nextcloud-client-dolphin
|
- nextcloud-client-dolphin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue