Skip to content

Instantly share code, notes, and snippets.

View brainrake's full-sized avatar
λ ék .

Márton Boros brainrake

λ ék .
  • Budapest, Hungary
View GitHub Profile
module Quine exposing (main)
import Html exposing (..)
import Html.Attributes exposing (..)
main =
Html.textarea
[ rows 30
, cols 160
@brainrake
brainrake / flake.nix
Created March 31, 2023 14:31
cross compile rust to nix
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
naersk = {
url = "github:nix-community/naersk";
inputs.nixpkgs.follows = "nixpkgs";
@brainrake
brainrake / shell.nix
Created May 4, 2023 20:18
nodejs-12_x
{ hostPkgs ? import <nixpkgs> { }, ... }:
let
src = hostPkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "1db42b7fe3878f3f5f7a4f2dc210772fd080e205";
sha256 = "sha256-8LEHoYSJiL901bTMVatq+rf8y7QtWuZhwwpKE2fyaRY=";
};
pkgs = import src { };
in