Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/aa/reflex-vty-0.2' into release/…
Browse files Browse the repository at this point in the history
…0.3.1.1
  • Loading branch information
Ali Abrar committed Oct 5, 2021
2 parents 091083e + db33333 commit f818469
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 31 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 0.3.1.1

* Upgrade readme example to use reflex-vty 0.2
* Update readme example to use reflex-vty 0.2

## 0.3.1.0

Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions nixpkgs/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"owner": "NixOS",
"repo": "nixpkgs",
"branch": "nixos-20.09",
"private": false,
"rev": "068984c00e0d4e54b6684d98f6ac47c92dcb642e",
"sha256": "00j4xv4lhhqwry7jd67brnws4pwb8vn660n43pvxpkalbpxszwfg"
}
File renamed without changes.
8 changes: 0 additions & 8 deletions reflex-platform/github.json

This file was deleted.

70 changes: 48 additions & 22 deletions release.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,54 @@
{ reflex-platform-fun ? import ./reflex-platform
{ pkgs ? import ./nixpkgs {}
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ]
}:

let
native-reflex-platform = reflex-platform-fun {};
inherit (native-reflex-platform.nixpkgs) lib;
inherit (pkgs) lib;
sharedOverrides = self: super: {
reflex-vty = self.callHackageDirect {
pkg = "reflex-vty";
ver = "0.2.0.0";
sha256 = "1vb38qx1a6l28i4wd1g48qqmymlzivq7lwmxbywjs0b36ynsnfk8";
} {};
reflex = self.callHackageDirect {
pkg = "reflex";
ver = "0.8.1.1";
sha256 = "1sdakz8rgdhvrcq004926dmbwlmhmv7wsw9h7f8klnvdsydm7dh7";
} {};
patch = self.callHackageDirect {
pkg = "patch";
ver = "0.0.4.0";
sha256 = "1x1rbi51r5gvbkg96884c2py7in4n0ijh5ins8ya3b5kga32siq4";
} {};
};

ghcs = {
ghc865 = pkgs.haskell.packages.ghc865.override {
overrides = self: super: sharedOverrides self super // {
ghc-lib-parser = self.callHackageDirect {
pkg = "ghc-lib-parser";
ver = "8.8.4.20210620";
sha256 = "17y7f5h1mrfyblaz0ipws04a4z11vnwkfvzzk8mkyrkz4am1a8fp";
} {};
ghc-lib-parser-ex = self.callHackageDirect {
pkg = "ghc-lib-parser-ex";
ver = "8.8.5.8";
sha256 = "1avdm9fzgk59xzq5xv5rlnncq4vgqsf3jyf46889cf7gcfb40aff";
} {};
hlint = self.callHackageDirect {
pkg = "hlint";
ver = "2.2.11";
sha256 = "0v4axmqb3zwzznyvhiqbr50k23ah63sd9gsmi5sa2p97hch8kwx1";
} {};

perPlatform = lib.genAttrs supportedSystems (system: let
reflex-platform = reflex-platform-fun {
inherit system;
};
};
ghc884 = pkgs.haskell.packages.ghc884.override {
overrides = sharedOverrides;
};
ghc8104 = pkgs.haskell.packages.ghc8104.override {
overrides = sharedOverrides;
};
src = builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [
"release.nix"
".git"
"dist"
"dist-newstyle"
"cabal.haskell-ci"
"cabal.project"
".travis.yml"
])) ./.;
in reflex-platform.ghc.callCabal2nix "reflex-process" src {});
};
in
lib.mapAttrs (_: ghc: ghc.callCabal2nix "reflex-process" ./. {}) ghcs

in perPlatform // {
cache = native-reflex-platform.pinBuildInputs
"reflex-process-everywhere"
(builtins.attrValues perPlatform);
}

0 comments on commit f818469

Please sign in to comment.