-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
30 lines (30 loc) · 861 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
{
inputs = {
nixpkgs.url = "nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import inputs.nixpkgs {
inherit system;
};
in
{
packages.default = pkgs.stdenv.mkDerivation rec {
name = "vbeterm";
src = ./.;
nativeBuildInputs = with pkgs; [ autoreconfHook pkg-config ];
buildInputs = [ pkgs.vte ];
postInstall = ''
mv $out/bin/term $out/bin/${name}
'';
};
devShells.default = pkgs.mkShell {
name = "vbeterm-dev";
buildInputs =
self.packages."${system}".default.nativeBuildInputs ++
self.packages."${system}".default.buildInputs;
};
});
}