Skip to content

Commit

Permalink
Simplify Nix code (#674)
Browse files Browse the repository at this point in the history
* Simplify Nix usage

* Remove separate pyk version bump

* Set Version: 0.1.82

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
Baltoli and devops authored Jul 11, 2024
1 parent 0eec76c commit 521a6c8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 194 deletions.
1 change: 0 additions & 1 deletion .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
run: |
K_VERSION=v"$(cat deps/k_release)"
sed -i 's! k-framework.url = "github:runtimeverification/k/v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+"! k-framework.url = "github:runtimeverification/k/'"${K_VERSION}"'"!' flake.nix
sed -i 's! pyk.url = "github:runtimeverification/k/v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+?dir=pyk"! pyk.url = "github:runtimeverification/k/'"${K_VERSION}"'?dir=pyk"!' flake.nix
nix flake update
git add flake.nix flake.lock && git commit -m 'flake.{nix,lock}: update Nix derivations' || true
- name: 'Push updates'
Expand Down
186 changes: 1 addition & 185 deletions flake.lock

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

11 changes: 5 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
nixpkgs.follows = "k-framework/nixpkgs";
flake-utils.follows = "k-framework/flake-utils";
rv-utils.follows = "k-framework/rv-utils";
pyk.url = "github:runtimeverification/k/v7.1.54?dir=pyk";
poetry2nix.follows = "pyk/poetry2nix";
poetry2nix.follows = "k-framework/poetry2nix";
};

outputs =
{ self, k-framework, nixpkgs, flake-utils, rv-utils, pyk, poetry2nix }:
{ self, k-framework, nixpkgs, flake-utils, rv-utils, poetry2nix }:
let
overlay = (final: prev:
let
Expand All @@ -28,7 +27,7 @@
inherit src version;

buildInputs = with prev; [
k-framework.packages.${system}.k
k
final.kwasm-pyk
python310
];
Expand All @@ -50,7 +49,7 @@
--prefix PATH : ${
prev.lib.makeBinPath [
prev.which
k-framework.packages.${prev.system}.k
prev.k
]
} \
--set KDIST_DIR $out
Expand Down Expand Up @@ -131,7 +130,7 @@
inherit system;
overlays = [
poetry2nix.overlays.default
pyk.overlay
k-framework.overlay
overlay
];
};
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.81
0.1.82
2 changes: 1 addition & 1 deletion pykwasm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pykwasm"
version = "0.1.81"
version = "0.1.82"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down

0 comments on commit 521a6c8

Please sign in to comment.