diff options
author | tdro <tdro@users.noreply.github.com> | 2022-03-17 22:07:02 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2022-03-17 22:07:02 -0400 |
commit | 7359d5e8a20073a9e40f92c6ad37d61ed5326859 (patch) | |
tree | 7d76b1c0bedf6d919926adac2bdc730178d8ead6 /shell.nix | |
parent | 3a505cebe8adab204e5619357e0bfe3f9f3a92ff (diff) | |
download | dmenu-7359d5e8a20073a9e40f92c6ad37d61ed5326859.tar.gz dmenu-7359d5e8a20073a9e40f92c6ad37d61ed5326859.tar.bz2 dmenu-7359d5e8a20073a9e40f92c6ad37d61ed5326859.zip |
Makefile: Add patches and shell environment
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..c54dd8a --- /dev/null +++ b/shell.nix @@ -0,0 +1,28 @@ +let + + name = "nix-shell.dmenu"; + + pkgs = import (builtins.fetchTarball { + url = "https://releases.nixos.org/nixos/21.11/nixos-21.11.336020.2128d0aa28e/nixexprs.tar.xz"; + sha256 = "0w8plbxms0di6gnh0k2yhj0pgxzxas7g5x0m01zjzixf16i2bapj"; }) {}; + + mkShellMinimal = pkgs.callPackage (builtins.fetchurl { + url = "https://raw.githubusercontent.com/tdro/dotfiles/0aac4414559235f8cd8c454acce30c0471e0f6b1/.config/nixpkgs/helpers/mkShellMinimal.nix"; + sha256 = "06vbyyhaam3nmzimzasz6la590ni9cbdql3jy29hhw9ln0xf09yy"; + }) { }; + +in mkShellMinimal rec { + buildInputs = [ + pkgs.bash + pkgs.coreutils + pkgs.gcc + pkgs.git + pkgs.gnumake + pkgs.xlibs.libX11.dev + pkgs.xlibs.libXft.dev + pkgs.xlibs.libXinerama.dev + ]; + shellHook = '' + export PS1='\h (${name}) \W \$ ' + ''; +} |