on master help sign in
phantomjs-nix/flake.nix
31 lines 869 B history raw
1{
2 inputs = {
3 nixpkgs.url = "github:NixOS/nixpkgs";
4 flake-utils.url = "github:numtide/flake-utils";
5 };
7 outputs = { flake-utils, nixpkgs, ... }:
8 let
9 supportedSystems =
10 [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
11 in flake-utils.lib.eachSystem supportedSystems (system:
12 let
13 pkgs = import nixpkgs {
14 inherit system;
15 config = {
16 permittedInsecurePackages =
17 [ "python-2.7.18.6" "qtwebkit-5.212.0-alpha4" ];
18 };
19 };
20 phantomjsDrv = pkgs.libsForQt5.callPackage ./phantomjs { };
21 in {
22 packages = {
23 phantomjs = phantomjsDrv;
24 default = phantomjsDrv;
25 };
26 apps = rec {
27 phantomjs = flake-utils.lib.mkApp { drv = phantomjsDrv; };
28 default = phantomjs;
29 };
30 });