Skip to content

Commit

Permalink
Prune follows for K flake (#4493)
Browse files Browse the repository at this point in the history
This PR makes some small optimisations to the way we set up input
following for the K Nix flake; rather than having several instantiations
of `rv-utils` (and transitively, `nixpkgs`) which _happen_ to all
resolve to the same store path, we lock the follows attributes such that
we guarantee a single instantiation.
  • Loading branch information
Baltoli authored Jul 10, 2024
1 parent 8093153 commit 2ab3abe
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 102 deletions.
128 changes: 33 additions & 95 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
description = "K Framework";
inputs = {
haskell-backend.url = "github:runtimeverification/haskell-backend/v0.1.29";
nixpkgs.follows = "llvm-backend/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
llvm-backend = {
url = "github:runtimeverification/llvm-backend/v0.1.52";
inputs.utils.follows = "flake-utils";
llvm-backend.url = "github:runtimeverification/llvm-backend/v0.1.52";
haskell-backend = {
url = "github:runtimeverification/haskell-backend/v0.1.29";
inputs.rv-utils.follows = "llvm-backend/rv-utils";
inputs.nixpkgs.follows = "llvm-backend/nixpkgs";
};
rv-utils.url = "github:runtimeverification/rv-nix-tools";

nixpkgs.follows = "llvm-backend/nixpkgs";
rv-utils.follows = "llvm-backend/rv-utils";
flake-utils.follows = "llvm-backend/utils";
};

outputs = { self, nixpkgs, flake-utils, rv-utils, haskell-backend
Expand Down

0 comments on commit 2ab3abe

Please sign in to comment.