Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
[*] support build on nixos
Browse files Browse the repository at this point in the history
  • Loading branch information
heng30 committed Jul 23, 2024
1 parent f1350c4 commit 87f6b0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

TARGET_DIR := ./target/release
TARGET := cryptoinfo
Expand All @@ -12,6 +12,9 @@ build-debug:
build:
cargo build --release

build-nixos:
nix-shell --run "cargo build --release"

run:
RUST_LOG=error,warn,info,debug,reqwest=off cargo run --release

Expand Down
4 changes: 4 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [ libGL.dev sqlite.dev xdotool];
}

0 comments on commit 87f6b0b

Please sign in to comment.