I just got asked this question: How do I find the SHA256 for a fetchGitHub
in Nix expressions without faking it and getting it from the error message?
Install nix-prefetch-github
:
$ nix-env -i nix-prefetch-github
{-# LANGUAGE NoImplicitPrelude #-} | |
module AlternativeExample where | |
import Control.Applicative | |
import Data.Maybe | |
import Data.Text hiding (empty) | |
import GHC.Show (Show) | |
type Login = Text |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE RankNTypes #-} | |
import Control.Monad (mapM_) | |
import Data.Function (($)) | |
import Data.Functor (Functor (..)) | |
import Data.List ((++)) | |
import GHC.Num (Integer, (+)) |
Goals for future websites or web applications builts in the next year include:
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:8e42c6f5300b802a2df2e7375ea6752798ade611] |
nix-shell -p yarn yarn2nix nodejs
package.nix
using yarn2nix
{-# LANGUAGE ExplicitForAll #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE TypeSynonymInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
module Profunctors where |
direnv
Nix integration from projects loads a Nix shell every new terminal or every time shell.nix
and/or default.nix
changes. On larger projects with a lot of Nix shell dependencies, that can cause the terminal to take more than 6 seconds to load, which significantly degrades the developer experience (DX).