diff --git a/flake.nix b/flake.nix index 29ce16aa31..b322e43eaf 100644 --- a/flake.nix +++ b/flake.nix @@ -1,4 +1,6 @@ { + description = "Status Desktop" + inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-20.09"; # for nix-shell support inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; @@ -11,11 +13,12 @@ outputs = { self, nixpkgs, nixgl, flake-compat }: let + flake = import "${self}/flake.nix"; pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ (import ./nix/overlay.nix) nixgl.overlay ]; }; in { - devShells.x86_64-linux.default = pkgs.callPackage ./nix/shell.nix { }; + devShells.x86_64-linux.default = pkgs.callPackage ./nix/shell.nix { inherit flake; }; }; } diff --git a/nix/shell.nix b/nix/shell.nix index 046b5cd172..2ff4bc1a39 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -1,5 +1,6 @@ { - pkgs + pkgs, + flake }: let @@ -36,7 +37,7 @@ in pkgs.mkShell { # dev machine only nixUnstable # for flake support TODO: remove with nixpkgs upgrade nixgl.auto.nixGLDefault - gdb + gdb figlet ] ++ (with gst_all_1; [ gst-libav gstreamer gst-plugins-bad gst-plugins-base @@ -56,6 +57,7 @@ in pkgs.mkShell { shellHook = '' export MAKEFLAGS="-j$NIX_BUILD_CORES" export PATH="${pkgs.lddWrapped}/bin:$PATH" + figlet -t "${flake.description}" ''; LIBKRB5_PATH = pkgs.libkrb5;