This is pretty out of date now... you may want to look elsewhere
Newer guides than mine (mine is a bit dated and has a lot of rough edges):
Have you looked at these?
| import Data.Bits | |
| import Control.Monad | |
| type Z = Integer | |
| -- Find smallest power of two >= given integer. | |
| -- Sadly it's not convenient using the usual interface to Integer | |
| -- Got exceptions when using Data.Bits.Bitwise | |
| suitablePower :: Z -> Int |
| self: super: | |
| { | |
| # Install overlay: | |
| # $ mkdir -p ~/.config/nixpkgs/overlays | |
| # $ curl https://gist.githubusercontent.com/LnL7/570349866bb69467d0caf5cb175faa74/raw/3f3d53fe8e8713ee321ee894ecf76edbcb0b3711/lnl-overlay.nix -o ~/.config/nixpkgs/overlays/lnl.nix | |
| userPackages = super.userPackages or {} // { | |
| # Example: | |
| hello = self.hello; |
This is pretty out of date now... you may want to look elsewhere
Newer guides than mine (mine is a bit dated and has a lot of rough edges):
Have you looked at these?