cleaner nix file
This commit is contained in:
parent
f48fc2c18c
commit
5b13f77fe1
1 changed files with 40 additions and 36 deletions
|
@ -1,15 +1,12 @@
|
||||||
let
|
{ nixpkgs ? import (fetchGit {
|
||||||
config = { allowBroken = true; };
|
|
||||||
in
|
|
||||||
{ nixpkgs ? import (fetchGit {
|
|
||||||
name = "nixos-release-19.09";
|
name = "nixos-release-19.09";
|
||||||
url = "https://github.com/NixOS/nixpkgs";
|
url = "https://github.com/NixOS/nixpkgs";
|
||||||
# obtained via
|
# obtained via
|
||||||
# git ls-remote https://github.com/nixos/nixpkgs master
|
# git ls-remote https://github.com/nixos/nixpkgs master
|
||||||
ref = "refs/heads/nixpkgs-19.09-darwin";
|
ref = "refs/heads/nixpkgs-19.09-darwin";
|
||||||
rev = "d5291756487d70bc336e33512a9baf9fa1788faf";
|
rev = "d5291756487d70bc336e33512a9baf9fa1788faf";
|
||||||
}) { inherit config; } }:
|
}) { config = { allowBroken = true; }; } }:
|
||||||
let
|
let
|
||||||
inherit (nixpkgs) pkgs;
|
inherit (nixpkgs) pkgs;
|
||||||
inherit (pkgs) haskellPackages;
|
inherit (pkgs) haskellPackages;
|
||||||
|
|
||||||
|
@ -19,22 +16,29 @@ in
|
||||||
containers
|
containers
|
||||||
];
|
];
|
||||||
|
|
||||||
ghc = haskellPackages.ghcWithPackages haskellDeps;
|
hspkgs = haskellPackages;
|
||||||
|
|
||||||
|
# ### how to override package version
|
||||||
|
# hspkgs = haskellPackages.extend (self: super: {
|
||||||
|
# summoner = self.callHackage "summoner" "1.4.0.0" {};
|
||||||
|
# # summoner-tui = self.callHackage "summoner-tui" "1.4.0.0" {};
|
||||||
|
# });
|
||||||
|
|
||||||
|
ghc = hspkgs.ghcWithPackages haskellDeps;
|
||||||
|
|
||||||
nixPackages = [
|
nixPackages = [
|
||||||
ghc
|
ghc
|
||||||
pkgs.gdb
|
pkgs.gdb
|
||||||
# haskellPackages.haskell-overridez
|
hspkgs.summoner
|
||||||
haskellPackages.summoner
|
hspkgs.summoner-tui
|
||||||
haskellPackages.summoner-tui
|
|
||||||
haskellPackages.cabal-install
|
haskellPackages.cabal-install
|
||||||
haskellPackages.ghcid
|
haskellPackages.ghcid
|
||||||
];
|
];
|
||||||
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\]]> "
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue