--- /dev/null
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1777268161,
+ "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
--- /dev/null
+{
+ description = "flake for building st";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
+ };
+
+ outputs =
+ { self, nixpkgs }:
+ let
+ system = "x86_64-linux";
+ pkgs = import nixpkgs { inherit system; };
+
+ in
+ {
+ packages.${system}.default = pkgs.stdenv.mkDerivation {
+ pname = "st";
+ version = "0.9.3";
+ src = ./.;
+
+
+
+ nativeBuildInputs = with pkgs; [
+ pkg-config
+ ncurses
+ fontconfig
+ freetype
+ ];
+ buildInputs = [
+ pkgs.libX11
+ pkgs.libxft
+ ];
+
+ preInstall = ''
+ export TERMINFO=$out/share/terminfo
+ mkdir -p $TERMINFO $out/nix-support
+ echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
+ '';
+ installFlags = [ "PREFIX=$(out)" ];
+
+ };
+ };
+}