summary refs log tree commit diff
path: root/flake.nix
blob: 9e576c35f1e6a8f158cc8161aa112ee19352e54f (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
{
  description = "19 PDH Puszcza low-tech site";
  inputs.nur.url = github:nix-community/NUR;

  outputs = { self, nixpkgs, nur }:
  let
    system = "x86_64-linux";
    pkgs = import nixpkgs { inherit system; overlays = [ nur.overlay ]; };
  in {
    defaultPackage.${system} = self.packages.${system}.low-puszcza;

    packages.${system}.low-puszcza = pkgs.stdenv.mkDerivation {
      name = "low-puszcza";
      src = self;
      nativeBuildInputs = [ pkgs.zip pkgs.nur.repos.pn.saait ];

      installPhase = ''
        mkdir $out
        cp -r output $out/
      '';
    };

  };
}