package.nix (652B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 }: 6 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "chibicc"; 9 version = "0-unstable-2020-12-07"; 10 11 __structuredAttrs = true; 12 13 src = fetchFromGitHub { 14 owner = "rui314"; 15 repo = "chibicc"; 16 rev = "90d1f7f199cc55b13c7fdb5839d1409806633fdb"; 17 hash = "sha256-sGSPQv9JPXTnyv+7CnmzWq1objCJRctK4wKII8GM26s="; 18 }; 19 20 installPhase = '' 21 install -Dm755 chibicc -t $out/bin 22 ''; 23 24 meta = { 25 description = "A small C compiler"; 26 homepage = "https://github.com/rui314/chibicc"; 27 license = lib.licenses.mit; 28 platforms = lib.platforms.unix; 29 maintainers = [ lib.maintainers.sikmir ]; 30 }; 31 })
