Skip to content

Commit

Permalink
nix: use lzallright through an overlay
Browse files Browse the repository at this point in the history
so it matches with how unblob-native and pyperscan is used
  • Loading branch information
vlaci committed Dec 15, 2023
1 parent 21e61ce commit b50a5ff
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 957 deletions.
133 changes: 126 additions & 7 deletions flake.lock

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

7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
url = "github:onekey-sec/unblob-native";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.lzallright = {
url = "github:vlaci/lzallright";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.pyperscan = {
url = "git+https://github.com/vlaci/pyperscan/?ref=main&submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -27,7 +31,7 @@
];
};

outputs = { self, nixpkgs, filter, unblob-native, pyperscan, sasquatch, ... }:
outputs = { self, nixpkgs, filter, unblob-native, lzallright, pyperscan, sasquatch, ... }:
let
# System types to support.
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
Expand All @@ -48,6 +52,7 @@
filter.overlays.default
sasquatch.overlays.default
unblob-native.overlays.default
lzallright.overlays.default
pyperscan.overlays.default
(import ./overlay.nix)
];
Expand Down
27 changes: 1 addition & 26 deletions nix/_sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,6 @@
},
"version": "0.13.2"
},
"lzallright": {
"cargoLocks": {
"Cargo.lock": [
"./lzallright-v0.2.3/Cargo.lock",
{}
]
},
"date": null,
"extract": null,
"name": "lzallright",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "vlaci",
"repo": "lzallright",
"rev": "v0.2.3",
"sha256": "sha256-Zzif6WtecgAkNmml0kt0Z+Ewx0L30ahr+kwzYR5aUAM=",
"type": "github"
},
"version": "v0.2.3"
},
"pyfatfs": {
"cargoLocks": null,
"date": null,
Expand Down Expand Up @@ -124,4 +99,4 @@
},
"version": "0.8.9"
}
}
}
25 changes: 4 additions & 21 deletions nix/_sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
pname = "jefferson";
version = "0.4.5";
src = fetchurl {
url = "https://pypi.org/packages/source/j/jefferson/jefferson-0.4.5.tar.gz";
url = "https://files.pythonhosted.org/packages/source/j/jefferson/jefferson-0.4.5.tar.gz";
sha256 = "sha256-+cPOzzO3bCQAu8LrbjUJ5S/SR5OFitOYLIu5L9t/q+k=";
};
};
Expand All @@ -31,44 +31,27 @@
sha256 = "sha256-lH4SqwPB2Jp/wUI2Cll67PQbHbwMqpNuLy/ei8roiHg=";
};
};
lzallright = {
pname = "lzallright";
version = "v0.2.3";
src = fetchFromGitHub {
owner = "vlaci";
repo = "lzallright";
rev = "v0.2.3";
fetchSubmodules = false;
sha256 = "sha256-Zzif6WtecgAkNmml0kt0Z+Ewx0L30ahr+kwzYR5aUAM=";
};
cargoLock."Cargo.lock" = {
lockFile = ./lzallright-v0.2.3/Cargo.lock;
outputHashes = {

};
};
};
pyfatfs = {
pname = "pyfatfs";
version = "1.0.5";
src = fetchurl {
url = "https://pypi.org/packages/source/p/pyfatfs/pyfatfs-1.0.5.tar.gz";
url = "https://files.pythonhosted.org/packages/source/p/pyfatfs/pyfatfs-1.0.5.tar.gz";
sha256 = "sha256-5J6gYhGf32GYx7u8/ghYnYkZ40rCH19gTQ7YtcREly0=";
};
};
treelib = {
pname = "treelib";
version = "1.7.0";
src = fetchurl {
url = "https://pypi.org/packages/source/t/treelib/treelib-1.7.0.tar.gz";
url = "https://files.pythonhosted.org/packages/source/t/treelib/treelib-1.7.0.tar.gz";
sha256 = "sha256-m/8a9Ba55kKmzQ4EMdFe3yaiS40MiuaK+9OAG14w+2E=";
};
};
ubi_reader = {
pname = "ubi_reader";
version = "0.8.9";
src = fetchurl {
url = "https://pypi.org/packages/source/u/ubi_reader/ubi_reader-0.8.9.tar.gz";
url = "https://files.pythonhosted.org/packages/source/u/ubi_reader/ubi_reader-0.8.9.tar.gz";
sha256 = "sha256-b6Jp8xB6jie35F/oLEea1RF+F8J64AiiQE3/ufwu1mE=";
};
};
Expand Down
Loading

0 comments on commit b50a5ff

Please sign in to comment.