blob: b616a915db2268f125860cd45b84ad261f8d8094 (
plain) (
blame)
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
|
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
app = pkgs.callPackage ./app.nix { inherit pkgs; };
deps = with pkgs; with perlPackages; [
perl JSON LWP LWPProtocolHttps PathTiny
];
in
with pkgs; {
packages.docker = symlinkJoin {
name = "docker";
paths = [ perl app ];
meta.priority = 5;
};
devShells.default = mkShell { buildInputs = deps; };
}
);
}
|