-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (35 loc) · 1.04 KB
/
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
{
description = "";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in rec {
packages.default = pkgs.writeShellApplication {
name = "subtitle-merger";
runtimeInputs = with pkgs;
[
(sbcl.withPackages (ps:
with ps; [
alexandria
arrow-macros
serapeum
defmain
cl-ppcre
trivia
]))
];
text = ''
sbcl --script ${self}/main.lisp "$@"
'';
};
packages.docker = pkgs.dockerTools.buildLayeredImage {
name = "coruscation/subtitle-merger";
tag = "latest";
config = {
Entrypoint = [ "${packages.default}/bin/subtitle-merger" ];
};
};
});
}