pwnix/flake.nix

37 lines
987 B
Nix
Raw Normal View History

2021-12-01 00:11:05 +01:00
{
description = "A very basic flake";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
jwt-tool = {
url = "github:MaeIsBad/jwt_tool";
flake = false;
};
2021-12-04 14:36:05 +01:00
pycdc = {
url = "github:zrax/pycdc";
flake = false;
};
2021-12-01 00:11:05 +01:00
};
2021-12-04 14:36:05 +01:00
outputs = { self, nixpkgs, flake-utils, jwt-tool, pycdc }:
2021-12-01 00:11:05 +01:00
flake-utils.lib.eachDefaultSystem
(system:
let
2022-02-26 14:00:34 +01:00
nixpkgs = import self.inputs.nixpkgs { system = system; config.allowUnfree = true; };
2021-12-01 00:11:05 +01:00
in
rec {
packages.jwt-tool = (import ./jwt-tool.nix { inherit nixpkgs jwt-tool; });
apps.jwt-tool = {
type = "app";
program = "${packages.jwt-tool}/bin/jwt_tool";
};
2021-12-04 14:36:05 +01:00
packages.pycdc = (import ./pycdc.nix { inherit nixpkgs pycdc; });
apps.pycdc = {
type = "app";
program = "${packages.pycdc}/bin/pycdc";
};
2022-02-26 14:00:34 +01:00
packages.wordlists = (nixpkgs.callPackage ./wordlists/default.nix {} );
2021-12-01 00:11:05 +01:00
}
);
}