1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-30 22:53:37 +00:00
This commit is contained in:
Rae 5e 2025-01-19 23:21:23 -05:00
parent bc13ec5175
commit 61c1f21f41
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
4 changed files with 29 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{ nur, fenix, nixpkgs-unstable, ... }: [
nur.overlays.default
fenix.overlays.default
(import ./pkgs/overlay.nix {})
(final: prev: {
unstable = import nixpkgs-unstable {
system = prev.system;

View file

@ -7,12 +7,14 @@
environment.systemPackages = with pkgs; [
# development
cc65 # C compiler for processors of 6502 family
chibicc-uxn
(fenix.default.withComponents [ "cargo" "rustc" ])
gcc # GNU Compiler Collection, version 13.3.0 (wrapper script)
git # Distributed version control system
godot_4 # Free and Open Source 2D and 3D game engine
gtk4 # Multi-platform toolkit for creating graphical user interfaces
just # Handy way to save and run project-specific commands
gnumake # Tool to control the generation of non-source files from sources
meson # Open source, fast and friendly build system made in Python
nodejs_23 # Event-driven I/O framework for the V8 JavaScript engine
pnpm # Fast, disk space efficient package manager for JavaScript

View file

@ -0,0 +1,23 @@
{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation {
pname = "chibicc-uxn";
version = "1.0.0";
src = fetchFromGitHub {
owner = "lynn";
repo = "chibicc";
rev = "0a590db363fb8d69b80fc70d9dfb7e655aafe656";
sha256 = "1jf18dh9ns0q79q8ql5yiw7l3zswyy0qjlz089xr3kw4zpqaqfmn";
};
installPhase = ''
mkdir -p $out/bin
cp chibicc $out/bin
'';
meta = {
description = "A small C compiler... for uxn";
homepage = "https://github.com/lynn/chibicc";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}

3
nixos/pkgs/overlay.nix Normal file
View file

@ -0,0 +1,3 @@
{ ... }: final: prev: with final; {
chibicc-uxn = callPackage ./chibicc-uxn {};
}