Skip to content

Commit e15ec3b

Browse files
committed
chore: modify flake.nix for st
1 parent 8af26b0 commit e15ec3b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

flake.nix

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@
88

99
outputs =
1010
{ self, nixpkgs, flakeutils }:
11-
flakeutils.lib.eachDefaultSystem (system:
12-
let pkgs = nixpkgs.legacyPackages.${system}; in
13-
{
14-
packages = rec {
15-
st = pkgs.stdenv.mkDerivation {
16-
name = "st";
17-
src = ./.;
18-
buildInputs = [
19-
pkgs.gcc pkgs.pkg-config pkgs.xorg.libX11 pkgs.xorg.libXft pkgs.ncurses pkgs.hack-font
20-
];
21-
buildPhase = ''
11+
flakeutils.lib.eachDefaultSystem (system:
12+
let pkgs = nixpkgs.legacyPackages.${system}; in
13+
{
14+
packages = rec {
15+
st = pkgs.stdenv.mkDerivation {
16+
name = "st";
17+
src = ./.;
18+
buildInputs = [
19+
pkgs.gcc pkgs.pkg-config pkgs.xorg.libX11 pkgs.xorg.libXft pkgs.ncurses pkgs.hack-font
20+
];
21+
buildPhase = ''
2222
make
2323
'';
24-
installPhase = ''
24+
installPhase = ''
2525
TERMINFO="$out" make install DESTDIR="$out" PREFIX=""
2626
'';
27-
};
28-
default = st;
2927
};
30-
apps = rec {
31-
st = flakeutils.lib.mkApp { drv = self.packages.${system}.st; };
32-
default = st;
33-
};
34-
}
35-
);
28+
default = st;
29+
};
30+
apps = rec {
31+
st = flakeutils.lib.mkApp { drv = self.packages.${system}.st; };
32+
default = st;
33+
};
34+
}
35+
);
3636
}

0 commit comments

Comments
 (0)