chore(nix)_: add shell welcome note

This commit is contained in:
Anton Iakimov 2024-10-10 14:07:24 +02:00
parent 0a7e7083d4
commit cb5e201bb1
No known key found for this signature in database
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,6 @@
{ {
description = "Status Desktop"
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-20.09"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-20.09";
# for nix-shell support # for nix-shell support
inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
@ -11,11 +13,12 @@
outputs = { self, nixpkgs, nixgl, flake-compat }: outputs = { self, nixpkgs, nixgl, flake-compat }:
let let
flake = import "${self}/flake.nix";
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = "x86_64-linux"; system = "x86_64-linux";
overlays = [ (import ./nix/overlay.nix) nixgl.overlay ]; overlays = [ (import ./nix/overlay.nix) nixgl.overlay ];
}; };
in { in {
devShells.x86_64-linux.default = pkgs.callPackage ./nix/shell.nix { }; devShells.x86_64-linux.default = pkgs.callPackage ./nix/shell.nix { inherit flake; };
}; };
} }

View File

@ -1,5 +1,6 @@
{ {
pkgs pkgs,
flake
}: }:
let let
@ -36,7 +37,7 @@ in pkgs.mkShell {
# dev machine only # dev machine only
nixUnstable # for flake support TODO: remove with nixpkgs upgrade nixUnstable # for flake support TODO: remove with nixpkgs upgrade
nixgl.auto.nixGLDefault nixgl.auto.nixGLDefault
gdb gdb figlet
] ++ (with gst_all_1; [ ] ++ (with gst_all_1; [
gst-libav gstreamer gst-libav gstreamer
gst-plugins-bad gst-plugins-base gst-plugins-bad gst-plugins-base
@ -56,6 +57,7 @@ in pkgs.mkShell {
shellHook = '' shellHook = ''
export MAKEFLAGS="-j$NIX_BUILD_CORES" export MAKEFLAGS="-j$NIX_BUILD_CORES"
export PATH="${pkgs.lddWrapped}/bin:$PATH" export PATH="${pkgs.lddWrapped}/bin:$PATH"
figlet -t "${flake.description}"
''; '';
LIBKRB5_PATH = pkgs.libkrb5; LIBKRB5_PATH = pkgs.libkrb5;