-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
31 lines (30 loc) · 974 Bytes
/
flake.nix
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
{
description = "nix is love, nix is life";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: { buildGoModule = final.buildGo122Module; })
];
};
in rec {
devShells.default = pkgs.mkShell {
packages = with pkgs; [ go pgcli ];
shellHook = ''
export PATH=$PWD/scripts:$PATH
'';
};
packages.default = pkgs.callPackage ./nix/package.nix {};
apps.default = flake-utils.lib.mkApp {
drv = packages.deafault;
exePath = /bin/dbtm;
};
}) // {
overlays.default = (final: prev: rec {
db-time-machine = self.packages."${final.system}".default;
});
};
}