forked from onekey-sec/unblob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
36 lines (30 loc) · 986 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
description = "Extract files from any kind of container formats";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
inputs.poetry2nix.inputs.nixpkgs.follows = "nixpkgs";
inputs.sasquatch.url = "github:onekey-sec/sasquatch";
inputs.sasquatch.flake = false;
outputs = { self, nixpkgs, poetry2nix, sasquatch }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
};
inherit (pkgs) unblob;
in
{
overlays.default = nixpkgs.lib.composeManyExtensions [
poetry2nix.overlay
(import ./overlay.nix { inherit sasquatch; })
];
packages.${system} = {
inherit unblob;
inherit (pkgs) sasquatch;
default = unblob;
};
devShells.${system}.default = import ./shell.nix { inherit pkgs; };
legacyPackages.${system} = pkgs;
};
}