Merge pull request 'Flake updates' (#2) from dev into main
Some checks are pending
Haskell-CI / Haskell-CI - Linux - ghc-8.10.7 (push) Waiting to run
Haskell-CI / Haskell-CI - Linux - ghc-8.6.5 (push) Waiting to run
Haskell-CI / Haskell-CI - Linux - ghc-8.8.4 (push) Waiting to run
Haskell-CI / Haskell-CI - Linux - ghc-9.0.2 (push) Waiting to run
Haskell-CI / Haskell-CI - Linux - ghc-9.2.7 (push) Waiting to run
Haskell-CI / Haskell-CI - Linux - ghc-9.4.4 (push) Waiting to run

Reviewed-on: #2
This commit is contained in:
pitmutt 2025-04-14 18:15:32 +00:00
commit 39ea402877
2 changed files with 28 additions and 22 deletions

12
flake.lock generated
View file

@ -36,11 +36,11 @@
},
"haskell-flake": {
"locked": {
"lastModified": 1743922999,
"narHash": "sha256-Wh+Zak8sZUgair4pnZR0mLrLIhhInHS8izj7C1H10B8=",
"lastModified": 1744519138,
"narHash": "sha256-BWgmM5Vh1Km6W6BpSo2GeqLhTWznqLG+cFE6BVAriTg=",
"owner": "srid",
"repo": "haskell-flake",
"rev": "d102e0f8a1773b1a63a616faef670cf5e129f9e9",
"rev": "f95c7d51d8f34aa0a1fc2c18403b247c8e9763cc",
"type": "github"
},
"original": {
@ -51,11 +51,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1744157173,
"narHash": "sha256-bWSjxDwq7iVePrhmA7tY2dyMWHuNJo8knkO4y+q4ZkY=",
"lastModified": 1744536153,
"narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "6a39c6e495eefabc935d8ddf66aa45d85b85fa3f",
"rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
"type": "github"
},
"original": {

View file

@ -1,20 +1,33 @@
{
description = "foreign-rust: a Haskell library to create FFI to Rust";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
borsh.url = "github:khazaddum/borsh";
borsh.flake = false;
borsh = {
url = "github:khazaddum/borsh";
flake = false;
};
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
outputs = inputs @ {
self,
nixpkgs,
flake-parts,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ];
imports = [inputs.haskell-flake.flakeModule];
perSystem = { self', pkgs, ... }: {
# Typically, you just want a single project named "default". But
# multiple projects are also possible, each using different GHC version.
perSystem = {
self',
pkgs,
config,
inputs',
system,
...
}: let
in {
haskellProjects.default = {
# The base package set representing a specific GHC version.
# By default, this is pkgs.haskellPackages.
@ -35,13 +48,6 @@
};
settings = {
# aeson = {
# check = false;
# };
# relude = {
# haddock = false;
# broken = false;
# };
foreign-rust = {
check = false;
};