nixos-config/system/desktop/home-manager/xmonad/shell.nix
Ingolf Wagner 54bab918d7
init
2019-10-24 02:24:33 +02:00

14 lines
368 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
];
}