Skip to content

Commit 54c27eb

Browse files
authored
Merge pull request #5912 from sellout/minimal-nix-update
Minimal nix update
2 parents d8b58ea + 5702e0f commit 54c27eb

File tree

26 files changed

+59
-57
lines changed

26 files changed

+59
-57
lines changed

.github/workflows/nix-dev-cache.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- ubuntu-24.04
2525
# - ubuntu-24.04-arm https://github.com/unisonweb/unison/issues/5789
2626
- macos-13
27-
- macos-14
27+
- macos-15
2828
steps:
2929
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3030
- name: mount Nix store on larger partition
@@ -33,13 +33,13 @@ jobs:
3333
run: |
3434
sudo mkdir /nix /mnt/nix
3535
sudo mount --bind /mnt/nix /nix
36-
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
36+
- uses: cachix/install-nix-action@9280e7aca88deada44c930f1e2c78e21c3ae3edd # v31.7
3737
if: runner.os == 'Linux'
3838
with:
3939
extra_nix_config: |
4040
extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
4141
extra-substituters = https://cache.iog.io
42-
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
42+
- uses: cachix/install-nix-action@9280e7aca88deada44c930f1e2c78e21c3ae3edd # v31.7
4343
if: runner.os != 'Linux'
4444
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
4545
with:

codebase2/codebase-sqlite/unison-codebase-sqlite.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.37.0.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66

codebase2/codebase-sync/unison-codebase-sync.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.35.0.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66

codebase2/util-serialization/unison-util-serialization.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.35.0.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66

codebase2/util-term/unison-util-term.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.35.0.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66

flake.lock

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,52 @@
55
allow-import-from-derivation = true;
66
extra-substituters = ["https://unison.cachix.org"];
77
extra-trusted-public-keys = ["unison.cachix.org-1:i1DUFkisRPVOyLp/vblDsbsObmyCviq/zs6eRuzth3k="];
8+
## This allows derivations with `__noChroot` set to run outside the sandbox.
9+
sandbox = "relaxed";
810
};
911

1012
inputs = {
13+
flake-utils.url = "github:numtide/flake-utils";
1114
haskellNix.url = "github:input-output-hk/haskell.nix";
12-
nixpkgs-haskellNix.follows = "haskellNix/nixpkgs-unstable";
15+
nixpkgs.follows = "haskellNix/nixpkgs-unstable";
1316
nixpkgs-release.url = "github:NixOS/nixpkgs/release-24.05";
14-
flake-utils.url = "github:numtide/flake-utils";
17+
systems.follows = "flake-utils/systems";
1518
};
1619

1720
outputs = {
18-
self,
21+
flake-utils,
1922
haskellNix,
20-
nixpkgs-haskellNix,
23+
nixpkgs,
2124
nixpkgs-release,
22-
flake-utils,
25+
self,
26+
systems,
2327
}:
24-
flake-utils.lib.eachSystem [
25-
"x86_64-linux"
26-
"x86_64-darwin"
27-
"aarch64-darwin"
28-
"aarch64-linux"
29-
]
28+
flake-utils.lib.eachSystem (import systems)
3029
(system: let
31-
versions = import ./nix/versions.nix {inherit (nixpkgs-haskellNix) lib;};
32-
pkgs = import nixpkgs-haskellNix {
30+
versions = import ./nix/versions.nix {inherit (nixpkgs) lib;};
31+
pkgs = import nixpkgs {
3332
inherit system;
3433
inherit (haskellNix) config;
3534
overlays = [
3635
haskellNix.overlay
37-
(import ./nix/dependencies.nix {inherit nixpkgs-release;})
36+
(import ./nix/dependencies.nix {nixpkgs = nixpkgs-release;})
3837
];
3938
};
4039
unison-project = import ./nix/unison-project.nix {
41-
inherit (nixpkgs-haskellNix) lib;
40+
inherit (nixpkgs) lib;
4241
inherit (pkgs) haskell-nix;
4342
};
4443
haskell-nix-flake = import ./nix/haskell-nix-flake.nix {
4544
inherit pkgs unison-project versions;
46-
inherit (nixpkgs-haskellNix) lib;
45+
inherit (nixpkgs) lib;
4746
};
4847
renameAttrs = fn:
49-
nixpkgs-haskellNix.lib.mapAttrs' (name: value: {
48+
nixpkgs.lib.mapAttrs' (name: value: {
5049
inherit value;
5150
name = fn name;
5251
});
5352
in
54-
assert pkgs.stack.version == versions.stack;
55-
assert pkgs.hpack.version == versions.hpack; {
53+
assert pkgs.stack.version == versions.stack; {
5654
packages =
5755
renameAttrs (name: "component-${name}") haskell-nix-flake.packages
5856
// renameAttrs (name: "docker-${name}") (import ./nix/docker.nix {

lib/orphans/network-uri-orphans-sqlite/network-uri-orphans-sqlite.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.35.2.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66

lib/orphans/unison-core-orphans-sqlite/unison-core-orphans-sqlite.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.35.2.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66

lib/orphans/unison-hash-orphans-aeson/unison-hash-orphans-aeson.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.35.2.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66

0 commit comments

Comments
 (0)