-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(nix,ci): fixed flake for default devshell ; ci for tests
- Loading branch information
Showing
5 changed files
with
49 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build the app | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Nix package manager | ||
uses: DeterminateSystems/nix-installer-action@main | ||
|
||
- name: Setup Nix cache | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
|
||
- name: Build | ||
run: nix build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
{ | ||
rust-analyzer, | ||
callPackage, | ||
}: | ||
let | ||
mainPkg = callPackage ./default.nix { }; | ||
in | ||
mainPkg.overrideAttrs (oa: { | ||
nativeBuildInputs = [ | ||
rust-analyzer | ||
] ++ (oa.nativeBuildInputs or [ ]); | ||
}) | ||
{ pkgs, ... }: | ||
pkgs.mkShell { | ||
|
||
buildInputs = | ||
with pkgs; | ||
[ openssl ] | ||
++ lib.optionals stdenv.isDarwin ( | ||
with darwin.apple_sdk.frameworks; | ||
[ | ||
Security | ||
CoreFoundation | ||
SystemConfiguration | ||
] | ||
); | ||
|
||
shellHook = '' | ||
echo "You are inside the development shell!" | ||
''; | ||
} |