This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "grok build"; | |
| inputs.nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable; | |
| outputs = {self, nixpkgs}: | |
| let | |
| forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; | |
| nixpkgsFor = forAllSystems(system: import nixpkgs { | |
| inherit system; | |
| }); | |
| in { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "ollama dev"; | |
| inputs.nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable; | |
| outputs = {self, nixpkgs}: | |
| let | |
| forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; | |
| nixpkgsFor = forAllSystems(system: import nixpkgs { | |
| inherit system; | |
| }); | |
| in { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Basic haskell cabal template"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/23.11"; | |
| }; | |
| outputs = { self, nixpkgs }: | |
| let | |
| forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useReducer } from "react"; | |
| import "./App.css"; | |
| type ActionType = | |
| | { type: "ADD"; text: string } | |
| | { type: "REMOVE"; id: number }; | |
| abstract class Functor<A> { | |
| public abstract map<B>(fn: (a: A) => B): Functor<B>; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import Prelude | |
| import Effect (Effect) | |
| import Effect.Console (log) | |
| import Web.HTML as Web | |
| import Web.HTML.Window as Window | |
| import Web.HTML.HTMLDocument as HTMLDocument | |
| import Web.DOM.ParentNode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE DuplicateRecordFields #-} | |
| {-# LANGUAGE OverloadedRecordDot #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main where | |
| import Text.Blaze ((!)) | |
| import Text.Blaze.Html.Renderer.Text qualified as Html | |
| import Text.Blaze.Html5 qualified as Html | |
| import Text.Blaze.Html5.Attributes qualified as Html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rocksdb-8.3.2/util/string_util.cc: In function ‘std::string rocksdb::NumberToHumanString(int64_t)’: | |
| rocksdb-8.3.2/util/string_util.cc:121:32: error: | |
| error: ‘%li’ directive output may be truncated writing between 1 and 20 bytes into a region of size 19 [-Werror=format-truncation=] | |
| 121 | snprintf(buf, sizeof(buf), "%" PRIi64, num); | |
| | ^ | |
| | | |
| 121 | snprintf(buf, sizeof(buf), "%" PRIi64, num); | |
| | ^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Basic haskell cabal template"; | |
| inputs.nixpkgs.url = "nixpkgs/nixos-22.11"; | |
| outputs = { self, nixpkgs }: | |
| let | |
| supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; | |
| forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is an example of overriding a GHC core Haskell library (like | |
| # bytestring, containers, text, unix, etc) when building a Haskell package. | |
| let default-nixpkgs = | |
| builtins.fetchTarball { | |
| # nixpkgs haskell-updates branch as of 2019/09/15. | |
| url = "https://github.com/NixOS/nixpkgs/archive/a51b3367ab6acc72630da0bad50ce14fa86996d0.tar.gz"; | |
| sha256 = "05d3jxxk5dxzs9b3nan16lhkrjnzf0bjd4xy66az86fsafnrr9rd"; | |
| }; | |
| in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self: super: rec { | |
| overriddenHaskellPackages = super.haskellPackages.override rec { | |
| overrides = haskellSelf: haskellSuper: rec { | |
| launchdarkly-server-sdk = self.haskell.lib.unmarkBroken | |
| (haskellSelf.callHackage "launchdarkly-server-sdk" "3.0.3" { }); | |
| http-client = haskellSelf.callCabal2nix "http-client" (builtins.fetchGit { | |
| url = "https://github.com/snoyberg/http-client.git"; | |
| rev = "4c5c786bd437fd49092e5937c8685b5300913fa8"; |
NewerOlder