nixos-config/nixos/system/desktop/home-manager/xmonad/shell.nix
2021-11-01 09:20:42 +01:00

10 lines
364 B
Nix

{ pkgs ? import <nixpkgs> { } }:
let
updateCabal = pkgs.writeShellScriptBin "update-cabal" # sh
''
cd ${toString ./.}
echo "# created by cabal2nix " > ${toString ./.}/current-project.nix
${pkgs.cabal2nix}/bin/cabal2nix . >> ${toString ./.}/current-project.nix
'';
in
pkgs.mkShell { buildInputs = with pkgs; [ updateCabal cabal2nix ]; }