mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 22:07:00 +05:30
feat: migrate to Nix Flakes
This commit is contained in:
parent
92237372c7
commit
a4855b834f
4 changed files with 249 additions and 17 deletions
25
shell.nix
25
shell.nix
|
@ -1,17 +1,8 @@
|
|||
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
(rust-bin.stable.latest.default.override {
|
||||
extensions =
|
||||
[ "rust-src" "rustc-dev" "rustfmt-preview" "llvm-tools-preview" ];
|
||||
targets =
|
||||
pkgs.lib.optionals pkgs.stdenv.isDarwin [ "aarch64-apple-darwin" ]
|
||||
++ pkgs.lib.optionals pkgs.stdenv.isLinux
|
||||
[ "x86_64-unknown-linux-gnu" ];
|
||||
})
|
||||
pkg-config
|
||||
openssl
|
||||
clang_13
|
||||
] ++ lib.optionals stdenv.isDarwin
|
||||
[ pkgs.darwin.apple_sdk.frameworks.Security ];
|
||||
}
|
||||
(import (let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in
|
||||
fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}) {src = ./.;})
|
||||
.shellNix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue