Skip to content

Commit

Permalink
Update to lts-23
Browse files Browse the repository at this point in the history
  • Loading branch information
junjihashimoto committed Feb 2, 2025
1 parent 64187fb commit deb1b6c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/nix-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: hasktorch
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix build .
15 changes: 15 additions & 0 deletions .github/workflows/nix-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: nix-macos

on: [push, pull_request]

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: hasktorch
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix build .
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
};
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:junjihashimoto/nixpkgs?rev=5c77923028d8ec6c54dc9820e44bced372c68f3d";
nixpkgs.url = "github:nixos/nixpkgs?rev=01d7c7caba0f021e986f7e46fae3c8e41265a145";
};

outputs = { self, nixpkgs, utils }:
Expand All @@ -14,6 +14,9 @@
inherit system;
config.allowUnfree = true;
config.cudaSupport = system == "x86_64-linux";
# config.ihaskell.packages = pkgs: with pkgs; [
# hasktorch
# ];
};
ghcWithHasktorch = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [
hasktorch
Expand All @@ -26,6 +29,7 @@
ghcWithHasktorch
cabal-install
stack
# ihaskell
];
shellHook = ''
source ${git}/share/bash-completion/completions/git-prompt.sh
Expand Down

0 comments on commit deb1b6c

Please sign in to comment.