-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
21 lines (19 loc) · 834 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
description = ''Portable "Tiny Tiny Rss" service run by uwsgi-php and built with Nix'';
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-24.11;
outputs = { self, nixpkgs, ... }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
nixos = (nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = []; }).config.system.nixos;
ttRss = (import ./tt-rss.nix { inherit pkgs; });
in {
packages.x86_64-linux.default = (import ./build.nix { inherit pkgs ttRss; withSystemd = false; });
packages.x86_64-linux.release-info = pkgs.writeText "release-info.txt" ''
php: ${pkgs.php.version}
uwsgi: ${pkgs.uwsgi.version}
tt-rss: ${ttRss.version}
${nixos.distroName} ${nixos.release} (${nixos.codeName})
${nixos.distroId} ${nixos.label}
'';
};
}