mirror of
https://github.com/malob/prefmanager.git
synced 2024-12-14 11:57:49 +00:00
Add overlay
This commit is contained in:
parent
14c29b66ba
commit
489238d148
1 changed files with 10 additions and 5 deletions
15
flake.nix
15
flake.nix
|
@ -11,21 +11,26 @@
|
|||
devshell.inputs.flake-utils.follows = "flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, devshell, nixpkgs, flake-utils, plist-source, ... }:
|
||||
flake-utils.lib.eachSystem [ "x86_64-darwin" "aarch64-darwin" ] (system: let
|
||||
outputs = { self, devshell, nixpkgs, flake-utils, plist-source, ... }: {
|
||||
overlays.prefmanager = _: prev: {
|
||||
inherit (self.packages.${prev.stdenv.system}) prefmanager;
|
||||
};
|
||||
} // flake-utils.lib.eachSystem [ "x86_64-darwin" "aarch64-darwin" ] (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
compiler = pkgs.haskell.packages.ghc902;
|
||||
compiler = pkgs.haskell.packages.ghc902;
|
||||
hlib = pkgs.haskell.lib;
|
||||
plist = hlib.markUnbroken (hlib.overrideSrc compiler.plist { src = plist-source; });
|
||||
prefmanager = compiler.callCabal2nix "prefmanager" ./. { inherit plist; };
|
||||
inherit (devshell.legacyPackages.${system}) mkShell;
|
||||
in rec {
|
||||
in
|
||||
{
|
||||
# Built by `nix build .`
|
||||
packages.default = prefmanager;
|
||||
packages.prefmanager = prefmanager;
|
||||
|
||||
# # This is used by `nix develop .`
|
||||
devShell = mkShell {
|
||||
devShells.default = mkShell {
|
||||
name = "prefmanager";
|
||||
packages = [
|
||||
compiler.haskell-language-server
|
||||
|
|
Loading…
Reference in a new issue