~yoctocell/yoctocell.xyz

ref: c1413e05cd41afb2555b523eebc16fd44b565929 yoctocell.xyz/flake.nix -rw-r--r-- 940 bytes
c1413e05 — yoctocell Add about and contacts page 10 months ago
                                                                                
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
{
  description = "A flake for my website";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    pr104273.url = "github:nixos/nixpkgs?rev=9a8ee5568d5479b0c38b40eabbcc1340047b8abe";
    rel2009.url = "github:nixos/nixpkgs/release-20.09";

    flake-compat.url = "github:edolstra/flake-compat";
    flake-compat.flake = false;

    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, rel2009, pr104273, flake-utils, ... }:
    let
      systems = [ "x86_64-linux" ];
    in
    flake-utils.lib.eachSystem systems
      (system:
        let
          # pkgs = nixpkgs.legacyPackages.${system};
          # pkgs = pr104273.legacyPackages.${system};
          pkgs = rel2009.legacyPackages.${system};
        in
        rec {
          defaultPackage = (import ./. { inherit pkgs; }).myProject;
          devShell = (import ./. {
            inherit pkgs;
          }).myShell;
        });
}