flake.nix: init

Este commit está contenido en:
Astro 2021-03-08 23:11:40 +01:00
padre 53a11663ee
commit f9b211fd9f
Se han modificado 2 ficheros con 50 adiciones y 0 borrados

25
flake.lock Archivo normal
Ver fichero

@ -0,0 +1,25 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1615240472,
"narHash": "sha256-m7r5+yFuJr+Seoynd06jnfcV3UTHNcFLmsqK3jQGU8E=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fab58377abea3fb53c5781cff510d908ea23e92c",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

25
flake.nix Archivo normal
Ver fichero

@ -0,0 +1,25 @@
{
description = "Ticker calendar aggregator";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forSystems = nixpkgs.lib.genAttrs systems;
in {
packages = forSystems (system:
import ./default.nix {
pkgs = nixpkgs.legacyPackages.${system};
}
);
defaultPackage = forSystems (system:
self.packages.${system}.ticker-serve
);
devShell = import ./shell.nix {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
nixosModule = import ./nixos-module;
};
}