diff --git a/default.nix b/default.nix deleted file mode 100644 index 39bacff..0000000 --- a/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -(import ( - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz"; - sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2"; } -) { - src = ./.; -}).defaultNix diff --git a/flake.nix b/flake.nix index a778e3f..ee8e128 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,15 @@ naersk-lib = pkgs.callPackage naersk { }; in { - defaultPackage = naersk-lib.buildPackage ./.; + defaultPackage = naersk-lib.buildPackage rec { + src = ./.; + nativeBuildInputs = with pkgs; [ + libnotify + ]; + LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath nativeBuildInputs; + + RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc; + }; devShell = with pkgs; mkShell { @@ -32,6 +40,7 @@ libnotify ]; RUST_SRC_PATH = rustPlatform.rustLibSrc; + RUST_BACKTRACE = 1; }; } ); diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 77db547..0000000 --- a/shell.nix +++ /dev/null @@ -1,7 +0,0 @@ -(import ( - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz"; - sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2"; } -) { - src = ./.; -}).shellNix