-
-
Save ixmatus/7615f25d702479ca95a1df2618164d8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let config = import ./config.nix; | |
in | |
{ pkgs ? import <nixpkgs> { inherit config; } }: | |
let | |
darwinPkgs = import <nixpkgs> { inherit config; system = "x86_64-darwin"; }; | |
linuxPkgs = import <nixpkgs> { inherit config; system = "x86_64-linux" ; }; | |
pkgs = import <nixpkgs> { inherit config; }; | |
in | |
{ mypackage-linux = linuxPkgs.haskellPackages.mypackage; | |
mypackage-darwin = darwinPkgs.haskellPackages.mypackage; | |
mypackage = pkgs.haskellPackages.mypackage; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment