mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-05-02 19:53:07 +00:00
~
This commit is contained in:
parent
bc13ec5175
commit
61c1f21f41
4 changed files with 29 additions and 0 deletions
23
nixos/pkgs/chibicc-uxn/default.nix
Normal file
23
nixos/pkgs/chibicc-uxn/default.nix
Normal 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
3
nixos/pkgs/overlay.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ ... }: final: prev: with final; {
|
||||
chibicc-uxn = callPackage ./chibicc-uxn {};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue