Compare commits

...

3 Commits

Author SHA1 Message Date
79085906a5 Add flake-utils 2025-07-15 18:11:11 +02:00
8ddeb8a61a Use specific nixpkgs 2025-07-15 18:07:16 +02:00
aa1bb459be Set system to aarch64-darwin 2025-07-15 16:44:15 +02:00
2 changed files with 53 additions and 14 deletions

52
flake.lock generated
View File

@ -1,23 +1,59 @@
{ {
"nodes": { "nodes": {
"nixpkgs": { "flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": { "locked": {
"lastModified": 1719285171, "lastModified": 1731533236,
"narHash": "sha256-kOUKtKfYEh8h8goL/P6lKF4Jb0sXnEkFyEganzdTGvo=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "NixOS", "owner": "numtide",
"repo": "nixpkgs", "repo": "flake-utils",
"rev": "cfb89a95f19bea461fc37228dc4d07b22fe617c2", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "numtide",
"type": "indirect" "repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1752536923,
"narHash": "sha256-fdgPZR7VFSSRIQKOJLcs3qCJBWM64Uak0gAGtWTYAd8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c665e4d918eda5d78a175ed8d300809c44932160",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "release-25.05",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -1,10 +1,12 @@
{ {
description = "An opionated Postgres library"; description = "An opionated Postgres library";
outputs = { self, nixpkgs }: inputs.nixpkgs.url = "github:nixos/nixpkgs/release-25.05";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let let
system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; };
pkgs = nixpkgs.legacyPackages.${system};
opium = pkgs.haskellPackages.developPackage { opium = pkgs.haskellPackages.developPackage {
root = ./.; root = ./.;
modifier = drv: modifier = drv:
@ -15,12 +17,13 @@
]; ];
}; };
in { in {
packages.${system}.opium = pkgs.haskell.lib.overrideCabal opium { packages.opium = pkgs.haskell.lib.overrideCabal opium {
# Currently the tests require a running Postgres instance. # Currently the tests require a running Postgres instance.
# This is not automated yet, so don't export the tests. # This is not automated yet, so don't export the tests.
doCheck = false; doCheck = false;
}; };
devShells.${system}.default = opium.env; devShells.default = opium.env;
}; }
);
} }