env and toto update

This commit is contained in:
Yann Esposito (Yogsototh) 2020-02-27 14:19:32 +01:00
parent 3a163d03a7
commit 11d58b18ac
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
3 changed files with 26 additions and 24 deletions

View file

@ -1,3 +1,4 @@
#+TITLE: Project TODO #+TITLE: Project TODO
* TODO Display size of current page (text + images) * DONE Display size of current page (text + images)
CLOSED: [2020-02-23 Sun 00:18]

View file

@ -0,0 +1 @@
use nix

View file

@ -1,26 +1,26 @@
{ nixpkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz) {} }: { nixpkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz) {} }:
let let
inherit (nixpkgs) pkgs; inherit (nixpkgs) pkgs;
inherit (pkgs) haskellPackages; inherit (pkgs) haskellPackages;
haskellDeps = ps: with ps; [ haskellDeps = ps: with ps; [
base base
protolude protolude
containers containers
]; ];
ghc = haskellPackages.ghcWithPackages haskellDeps; ghc = haskellPackages.ghcWithPackages haskellDeps;
nixPackages = [ nixPackages = [
ghc ghc
pkgs.gdb pkgs.gdb
haskellPackages.cabal-install haskellPackages.cabal-install
]; ];
in in
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "env"; name = "env";
buildInputs = nixPackages; buildInputs = nixPackages;
shellHook = '' shellHook = ''
export PS1="\n\[[hs:\033[1;32m\]\W\[\033[0m\]]> " export PS1="\n\[[hs:\033[1;32m\]\W\[\033[0m\]]> "
''; '';
} }