Skip to content

Commit

Permalink
Update for new Nix expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsagar committed Feb 3, 2024
1 parent 18a1a71 commit 6fa5f39
Show file tree
Hide file tree
Showing 26 changed files with 387 additions and 86 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
result
dist
dist-newstyle
bellroy-application
mercury-interview
20 changes: 17 additions & 3 deletions callcc/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [];
}
20 changes: 17 additions & 3 deletions chart-diagrams/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
nixpkgs = import pkgs.nixpkgs {};
compiler = "ghc928";
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [ ihaskell-aeson ihaskell-blaze ihaskell-charts ihaskell-diagrams ];
systemPackages = self: with self; [ graphviz ];
}
19 changes: 16 additions & 3 deletions codensity/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [];
}
21 changes: 17 additions & 4 deletions continuations/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
nixpkgs = import pkgs.nixpkgs {};
compiler = "ghc928";
packages = self: with self; [ ihaskell-widgets ];
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [];
}
21 changes: 16 additions & 5 deletions deriving-via/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
let
pkgs = import ../pkgs.nix;
rise = import ../rise.nix;
in import "${pkgs.ihaskell}/release.nix" {
nixpkgs = import pkgs.nixpkgs {};
compiler = "ghc928";
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [];
pythonPackages = p: [ (rise p) ];
}
20 changes: 16 additions & 4 deletions docker/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
let
pkgs = import ../pkgs.nix;
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
NB_USER = "jovyan";
NB_UID = "1000";
dockerEtc = nixpkgs.runCommand "docker-etc" {} ''
Expand All @@ -16,10 +29,9 @@ let
echo "root:x::" > $out/etc/gshadow
echo "jovyan:!::" >> $out/etc/gshadow
'';
ihaskell = import "${pkgs.ihaskell}/release.nix" {
inherit nixpkgs;
compiler = "ghc928";
ihaskell = nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
packages = self: with self; [];
extraEnvironmentBinaries = [jupyterlab];
staticExecutable = true;
};
image = nixpkgs.dockerTools.buildLayeredImage {
Expand Down
19 changes: 16 additions & 3 deletions dragon-curve/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
nixpkgs = import pkgs.nixpkgs {};
compiler = "ghc928";
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [];
}
19 changes: 16 additions & 3 deletions efficient-combinator-parsers/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [ timeit ];
}
20 changes: 16 additions & 4 deletions git-from-scratch/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
let
pkgs = import ../pkgs.nix;
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
cleanSource = name: type: let
baseName = baseNameOf (toString name);
lib = nixpkgs.lib;
Expand All @@ -17,9 +30,7 @@ let
);
git-from-scratch =
nixpkgs.haskellPackages.callCabal2nix "git-from-scratch" (builtins.filterSource cleanSource ./.) {};
in import "${pkgs.ihaskell}/release.nix" {
inherit nixpkgs;
compiler = "ghc928";
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
packages = self: with self; [
SHA
attoparsec
Expand All @@ -40,4 +51,5 @@ in import "${pkgs.ihaskell}/release.nix" {
qpdf
vim
];
extraEnvironmentBinaries = [jupyterlab];
}
19 changes: 16 additions & 3 deletions graphviz/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [ jupyterlab ];
packages = self: with self; [ here ihaskell-graphviz ];
systemPackages = self: with self; [ graphviz ];
}
19 changes: 16 additions & 3 deletions hamt/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [jupyterlab];
packages = self: with self; [ bytestring memory pretty-show timeit vector here ihaskell-graphviz ];
systemPackages = self: with self; [ graphviz ];
}
19 changes: 16 additions & 3 deletions higher-kinded-data/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
nixpkgs = import pkgs.nixpkgs {};
compiler = "ghc902";
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [ jupyterlab ];
packages = self: with self; [ validation ];
}
20 changes: 17 additions & 3 deletions hs-updater/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
sbv = sup.haskell.lib.dontCheck (self.callHackage "sbv" "10.1" {});
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [ jupyterlab ];
packages = self: with self; [
aeson
aeson-pretty
Expand Down
19 changes: 16 additions & 3 deletions intmap/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
extraEnvironmentBinaries = [ jupyterlab ];
packages = self: with self; [ pretty-show ];
}
19 changes: 16 additions & 3 deletions lambda/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
let
pkgs = import ../pkgs.nix;
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc928";
nixpkgs = import pkgs.nixpkgs {};
overlay = sel: sup: {
nix-filter = import pkgs.nix-filter;
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc948 = sup.haskell.packages.ghc948.override {
overrides = self: super: {
ghc-syntax-highlighter = self.ghc-syntax-highlighter_0_0_10_0;
};
};
};
};
};
nixpkgs = (import pkgs.nixpkgs { overlays = [ overlay ]; });
jupyterlab = nixpkgs.python3.withPackages (ps: [ ps.jupyterlab ps.notebook ]);
in nixpkgs.callPackage "${pkgs.ihaskell}/nix/release.nix" { compiler = "ghc948"; }{
packages = self: with self; [ containers transformers vector ];
extraEnvironmentBinaries = [jupyterlab];
}
Loading

0 comments on commit 6fa5f39

Please sign in to comment.