blob: 74fb0962cc077a61af1c78a12689c8a16d049965 (
plain)
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
|
{
description = "blog.kummerlaender.eu";
inputs = {
stable.url = github:NixOS/nixpkgs/nixos-21.05;
cms.url = git+ssh://git@code.kummerlaender.eu/blog.kummerlaender.eu;
};
outputs = { self, stable, cms, ... }: {
defaultPackage.x86_64-linux = cms.generate ./.;
defaultApp.x86_64-linux = let
system = "x86_64-linux";
pkgs = import stable { inherit system; };
serve = pkgs.writeScriptBin "serve" ''
#!/bin/sh
pushd ${cms.generate ./.}
${pkgs.gatling}/bin/gatling
popd
'';
in {
type = "app";
program = "${serve}/bin/serve";
};
};
}
|