Browse Source

flake.nix: init

master
Astro 8 months ago
parent
commit
f9b211fd9f
  1. 25
      flake.lock
  2. 25
      flake.nix

25
flake.lock

@ -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

@ -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;
};
}
Loading…
Cancel
Save