Skip to content

Commit

Permalink
feat(pkgs): add pyxamstore
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Aug 7, 2024
1 parent a83de84 commit 85dd67d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
attic = inputs.attic.packages.x86_64-linux.attic-nixpkgs.override {clientOnly = true;};

# TODO this should be auto generated
inherit (pkgs.my) alt-urls-discord-bot flask-unsign githacker jwt-tool pycdc pyinstxtractor;
inherit (pkgs.my) alt-urls-discord-bot flask-unsign githacker jwt-tool pycdc pyinstxtractor pyxamstore;
};
};

Expand Down
38 changes: 38 additions & 0 deletions packages/pyxamstore.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# https://www.thecobraden.com/posts/unpacking_xamarin_assembly_stores/
{
fetchFromGitHub,
lib,
python3Packages,
...
}:
python3Packages.buildPythonApplication {
pname = "pyxamstore";
version = "unstable-2023-05-14";

src = fetchFromGitHub {
owner = "jakev";
repo = "pyxamstore";
rev = "23cd52612702d08495570f96f60883d6047ae429";
hash = "sha256-A1eTzgu/KSWsXasXCGRLlXaqKp4/le8MsNY3NK/ocf0=";
};

# Check phase is failing with some pip error
doCheck = false;

nativeBuildInputs = with python3Packages; [
setuptools
];

propagatedBuildInputs = with python3Packages; [
future
lz4
xxhash
];

meta = with lib; {
description = "Python utility for parsing Xamarin AssemblyStore blob files";
homepage = "https://github.com/jakev/pyxamstore";
license = licenses.free;
platforms = platforms.linux;
};
}

0 comments on commit 85dd67d

Please sign in to comment.