nixos-config/nixos/components/gui/home-manager/xmonad/shell.nix

11 lines
364 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ pkgs ? import <nixpkgs> { } }:
2019-10-24 02:20:38 +02:00
let
2019-12-20 05:54:26 +01:00
updateCabal = pkgs.writeShellScriptBin "update-cabal" # sh
''
cd ${toString ./.}
echo "# created by cabal2nix " > ${toString ./.}/current-project.nix
${pkgs.cabal2nix}/bin/cabal2nix . >> ${toString ./.}/current-project.nix
'';
2021-11-01 09:20:42 +01:00
in
pkgs.mkShell { buildInputs = with pkgs; [ updateCabal cabal2nix ]; }