Skip to content

Commit

Permalink
update nix flake to pinned dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gleachkr committed Dec 5, 2024
1 parent 32e1c8d commit 2e60ce7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
1 change: 0 additions & 1 deletion cozy-template/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
buildInputs = [
pkgs.python311
cozyPkg
pkgs.gum
];
};
};
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

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

28 changes: 16 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@

outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
pkgs = nixpkgs.legacyPackages.x86_64-linux.extend (self: super: {
unicorn = super.unicorn.overrideAttrs {
version = "2.0.1"; #the nix package seems to have the version locked incorrectly to BELOW the exact unicorn version needed.
src = self.fetchFromGitHub {
owner = "unicorn-engine";
repo = "unicorn";
rev = "refs/tags/2.0.1.post1"; # XXX angr pins THIS version - cheating a bit
sha256 = "sha256-Jz5C35rwnDz0CXcfcvWjkwScGNQO1uijF7JrtZhM7mI=";
};
};
});

pyPkgs = pkgs.python311.pkgs;

portion = pyPkgs.buildPythonPackage rec {
pname = "portion";
version = "2.4.1";
version = "2.4.2";
src = pyPkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-ncvxgIiY9ECu0wSl6fB0KihZ7KOwrH8fWOUFAoUqjvk=";
sha256 = "sha256-Uom0DZiVmxaz9pJ3gWeJNdPfG3wUlH9dd3jl4E3ZoGU=";
};
doCheck = false;
};
Expand Down Expand Up @@ -42,15 +53,8 @@
];
};

latestTextual = pyPkgs.textual.overridePythonAttrs {
version = "0.60.1";
src = pkgs.fetchFromGitHub {
owner = "Textualize";
repo = "textual";
rev = "refs/tags/v0.60.1";
hash = "sha256-TyyI+Q61t2h0KLWc73pKcZXKVYNB+8mgoFqjAxM7TiE=";
};
};
# have had to override this in the past
latestTextual = pyPkgs.textual;

makeTests = conf : pkgs.stdenv.mkDerivation {
name = "cozy-test-artifacts";
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies = [
"networkx == 3.3",
"claripy == 9.2.130",
"portion == 2.4.2",
"textual == 0.71.0",
"textual == 0.86.1",
]

[project.urls]
Expand Down

0 comments on commit 2e60ce7

Please sign in to comment.