$ nix build -L .#pkgsMusl.postgresql
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/j76apgvazybh6fhiif7yj67xnfj6x7fr-postgresql-13.4.tar.bz2
source root is postgresql-13.4
setting SOURCE_DATE_EPOCH to timestamp 1628543016 of file postgresql-13.4/INSTALL
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/zv4waczq5k45138d2sdy7dyidas90lhh-disable-resolve_symlinks-94.patch
This file contains 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 AllowAmbiguousTypes #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GADTs #-} |
This file contains 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
with import <nixpkgs> {}; | |
let | |
packageSet = fetchurl { | |
url = "https://github.com/purescript/package-sets/releases/download/psc-0.14.4-20210905/packages.dhall"; | |
# The hash below is a base64-encoded version of the base-16 hash that is | |
# specified in our local packages.dhall file: | |
# ``` | |
# $ cat packages.dhall | |
# let upstream = |
This file contains 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
let | |
nixpkgs-src = builtins.fetchTarball { | |
# master of 2021-01-05. | |
url = "https://github.com/NixOS/nixpkgs/archive/1a57d96edd156958b12782e8c8b6a374142a7248.tar.gz"; | |
sha256 = "1qdh457apmw2yxbpi1biwl5x5ygaw158ppff4al8rx7gncgl10rd"; | |
}; | |
pkgs = import nixpkgs-src { | |
config = { | |
# allowUnfree may be necessary for some packages, but in general you should not need it. |
This file contains 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 FlexibleContexts #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Control.Monad.Except | |
import Control.Monad.State | |
import Control.Monad.Writer | |
import Data.Functor.Identity | |
import Data.Text (Text) |
This file contains 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 RankNTypes #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
module Example where | |
import Control.Concurrent.MVar | |
import Control.Monad.IO.Class | |
import Control.Monad.Trans.Cont | |
import Data.Foldable | |
import Data.Monoid |
This gist contains a shell.nix
file that can be used to create a Python environment for running training jobs in the GCP AI Platform.
This is specifically for the following tutorial:
https://cloud.google.com/ai-platform/docs/getting-started-keras
This uses code from https://github.com/GoogleCloudPlatform/cloudml-samples in the census/tf-keras
directory.
This file contains 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
Index,Date,NewRecord | |
0,2019-06-23 | |
1,2019-06-24 | |
2,2019-06-25 | |
3,2019-06-26 | |
4,2019-06-27 | |
5,2019-06-28 | |
6,2019-06-29 | |
7,2019-06-30 | |
8,2019-07-01 |
This file contains 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
Building library for purescript-0.13.4.. | |
[ 1 of 163] Compiling Control.Monad.Logger | |
[ 2 of 163] Compiling Control.Monad.Supply | |
[ 3 of 163] Compiling Control.Monad.Supply.Class | |
[ 4 of 163] Compiling Language.PureScript.Comments | |
[ 5 of 163] Compiling Language.PureScript.AST.SourcePos | |
[ 6 of 163] Compiling Language.PureScript.Crash | |
[ 7 of 163] Compiling Language.PureScript.AST.Operators | |
[ 8 of 163] Compiling Language.PureScript.Docs.Css | |
[ 9 of 163] Compiling Language.PureScript.Docs.Utils.MonoidExtras |
This file contains 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 |
NewerOlder