Install direnv scripts
Nix build / nix-build (nixosConfigurations.apollo.config.system.build.toplevel) (push) Successful in 1m32s Details
Nix build / nix-build (nixosConfigurations.athene.config.system.build.toplevel) (push) Successful in 1m2s Details
Nix build / nix-build (nixosConfigurations.hephaistos.config.system.build.toplevel) (push) Successful in 51s Details
Nix build / nix-build (nixosConfigurations.hera.config.system.build.toplevel) (push) Successful in 51s Details
Nix build / nix-build (nixosConfigurations.zeus.config.system.build.toplevel) (push) Successful in 1m18s Details
Nix build / nix-flake-check (push) Successful in 1m49s Details

This commit is contained in:
maralorn 2024-02-21 21:35:44 +01:00
parent c02c758f74
commit 4de56664a6
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,9 @@
((import ./. { }).passthru.__unstable__.self.extend (
_: _: {
shellPackages = {
model = "${./.}/model";
console = "${./.}/console";
common-backend = "${./.}/common-backend";
};
}
)).project.shells.ghc

View File

@ -0,0 +1,8 @@
((import ./. { }).passthru.__unstable__.self.extend (
_: _: {
shellPackages = {
console = "${./.}/console";
common-backend = "${./.}/common-backend";
};
}
)).project.shells.ghc

View File

@ -3,5 +3,17 @@
home.packages = [
pkgs.remmina
pkgs.mdbtools
(pkgs.writeShellScriptBin "for-model" ''
git checkout cabal.project
cp ${./_for-model-shell.nix} shell.nix
echo "use nix" > .envrc
direnv allow
'')
(pkgs.writeShellScriptBin "with-model" ''
sd ", model/\*.cabal" "" cabal.project
cp ${./_with-model-shell.nix} shell.nix
echo "use nix" > .envrc
direnv allow
'')
];
}