Add ruil and make liminal full-flake
This commit is contained in:
parent
97dceb1d65
commit
ff5367794d
16 changed files with 484 additions and 747 deletions
112
pkgs/codex/package.nix
Normal file
112
pkgs/codex/package.nix
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
clang,
|
||||
cmake,
|
||||
gitMinimal,
|
||||
libclang,
|
||||
makeBinaryWrapper,
|
||||
nix-update-script,
|
||||
pkg-config,
|
||||
openssl,
|
||||
libcap,
|
||||
ripgrep,
|
||||
versionCheckHook,
|
||||
installShellCompletions ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "codex";
|
||||
version = "0.101.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openai";
|
||||
repo = "codex";
|
||||
tag = "rust-v${finalAttrs.version}";
|
||||
hash = "sha256-m2Jq7fbSXQ/O3bNBr6zbnQERhk2FZXb+AlGZsHn8GuQ=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/codex-rs";
|
||||
|
||||
cargoHash = "sha256-oOcQv3NFd45WRdn2QtDMxVZwf3KjGWaSDBCjCk0ik/U=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
clang
|
||||
cmake
|
||||
gitMinimal
|
||||
installShellFiles
|
||||
makeBinaryWrapper
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libclang
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
libcap
|
||||
];
|
||||
|
||||
# NOTE: set LIBCLANG_PATH so bindgen can locate libclang, and adjust
|
||||
# warning-as-error flags to avoid known false positives (GCC's
|
||||
# stringop-overflow in BoringSSL's a_bitstr.cc) while keeping Clang's
|
||||
# character-conversion warning-as-error disabled.
|
||||
env = {
|
||||
LIBCLANG_PATH = "${lib.getLib libclang}/lib";
|
||||
NIX_CFLAGS_COMPILE = toString (
|
||||
lib.optionals stdenv.cc.isGNU [
|
||||
"-Wno-error=stringop-overflow"
|
||||
]
|
||||
++ lib.optionals stdenv.cc.isClang [
|
||||
"-Wno-error=character-conversion"
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
# NOTE: part of the test suite requires access to networking, local shells,
|
||||
# apple system configuration, etc. since this is a very fast moving target
|
||||
# (for now), with releases happening every other day, constantly figuring out
|
||||
# which tests need to be skipped, or finding workarounds, was too burdensome,
|
||||
# and in practice not adding any real value. this decision may be reversed in
|
||||
# the future once this software stabilizes.
|
||||
doCheck = false;
|
||||
|
||||
postInstall = lib.optionalString installShellCompletions ''
|
||||
installShellCompletion --cmd codex \
|
||||
--bash <($out/bin/codex completion bash) \
|
||||
--fish <($out/bin/codex completion fish) \
|
||||
--zsh <($out/bin/codex completion zsh)
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/codex --prefix PATH : ${lib.makeBinPath [ ripgrep ]}
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
versionCheckProgramArg = "--version";
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"^rust-v(\\d+\\.\\d+\\.\\d+)$"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Lightweight coding agent that runs in your terminal";
|
||||
homepage = "https://github.com/openai/codex";
|
||||
changelog = "https://raw.githubusercontent.com/openai/codex/refs/tags/rust-v${finalAttrs.version}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "codex";
|
||||
maintainers = with lib.maintainers; [
|
||||
delafthi
|
||||
jeafleohj
|
||||
malo
|
||||
];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
57
pkgs/hp15c/default.nix
Normal file
57
pkgs/hp15c/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ stdenv, fetchzip, autoPatchelfHook, makeWrapper, lib, unstable }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hp15c";
|
||||
version = "4.5.00";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://www.hpcalc.org/other/pc/HP-15C_4.5.00_Linux_x86_64.zip";
|
||||
sha256 = "15hxpckif4sab3lwkksqfnsf8agn545g2f5ijm6xrs2b23hdflmv";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
unstable.tcl
|
||||
unstable.tk
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/share/hp15c
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
|
||||
# Install the binary
|
||||
install -Dm755 HP-15C $out/bin/hp15c
|
||||
|
||||
# Install the font
|
||||
install -Dm644 HP-15C_Simulator_Font.ttf $out/share/fonts/truetype/
|
||||
|
||||
# Install documentation
|
||||
cp -r doc $out/share/hp15c/
|
||||
cp "Read Me & Release Notes.html" $out/share/hp15c/
|
||||
|
||||
# Create a wrapper script that sets up the environment
|
||||
makeWrapper $out/bin/hp15c $out/bin/hp15c-calculator \
|
||||
--set FONTCONFIG_PATH /etc/fonts \
|
||||
--set FONTCONFIG_FILE /etc/fonts/fonts.conf \
|
||||
--prefix TCLLIBPATH : "${unstable.tcl}/lib" \
|
||||
--prefix TCLLIBPATH : "${unstable.tk}/lib" \
|
||||
--set TK_LIBRARY "${unstable.tk}/lib/tk8.6" \
|
||||
--set TCL_LIBRARY "${unstable.tcl}/lib/tcl8.6" \
|
||||
--prefix LD_LIBRARY_PATH : "${unstable.tcl}/lib" \
|
||||
--prefix LD_LIBRARY_PATH : "${unstable.tk}/lib"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "HP-15C Calculator Simulator";
|
||||
homepage = "https://www.hpcalc.org/other/pc/";
|
||||
license = licenses.unfree; # You should check the actual license
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
37
pkgs/nonpareil/default.nix
Normal file
37
pkgs/nonpareil/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ stdenv, lib, fetchFromGitHub, pkg-config, autoreconfHook, pkgs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nonpareil";
|
||||
version = "unstable-2024-04-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "brouhaha";
|
||||
repo = "nonpareil";
|
||||
rev = "c347bc1ab20170c253512042f7aac0d952f304ea";
|
||||
sha256 = "1d130hmsgvlmj8iy8sdd0frx9gzsc68wp84zdax6i8f7dhqdfxzx"; # You'll need to replace this
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pkgs.gtk2
|
||||
pkgs.glib
|
||||
pkgs.libxml2
|
||||
pkgs.SDL
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-gtk2"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Microcode-level simulation of HP calculators";
|
||||
homepage = "https://github.com/brouhaha/nonpareil";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue