fixing shell.nix
This commit is contained in:
parent
ad011ab2db
commit
d177972e59
1 changed files with 8 additions and 2 deletions
10
shell.nix
10
shell.nix
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs ? import <nixpkgs> { } }:
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
with pkgs;
|
with pkgs;
|
||||||
mkShell {
|
mkShell rec {
|
||||||
name = "presenter-env";
|
name = "presenter-env";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -11,6 +11,7 @@ mkShell {
|
||||||
extra-cmake-modules
|
extra-cmake-modules
|
||||||
pkg-config
|
pkg-config
|
||||||
libsForQt5.wrapQtAppsHook
|
libsForQt5.wrapQtAppsHook
|
||||||
|
makeWrapper
|
||||||
# gccStdenv
|
# gccStdenv
|
||||||
# stdenv
|
# stdenv
|
||||||
];
|
];
|
||||||
|
@ -32,7 +33,7 @@ mkShell {
|
||||||
libsForQt5.kcoreaddons
|
libsForQt5.kcoreaddons
|
||||||
|
|
||||||
# This is only here because apparently it doesn't pick up the icon theme from the base system
|
# This is only here because apparently it doesn't pick up the icon theme from the base system
|
||||||
papirus-icon-theme
|
# papirus-icon-theme
|
||||||
# lightly-qt
|
# lightly-qt
|
||||||
|
|
||||||
mpv
|
mpv
|
||||||
|
@ -43,6 +44,11 @@ mkShell {
|
||||||
|
|
||||||
# This creates the proper qt env so that plugins are found right.
|
# This creates the proper qt env so that plugins are found right.
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
setQtEnvironment=$(mktemp --suffix .setQtEnvironment.sh)
|
||||||
|
echo "shellHook: setQtEnvironment = $setQtEnvironment"
|
||||||
|
makeWrapper "/bin/sh" "$setQtEnvironment" "''${qtWrapperArgs[@]}"
|
||||||
|
sed "/^exec/d" -i "$setQtEnvironment"
|
||||||
|
source "$setQtEnvironment"
|
||||||
fish
|
fish
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue