aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock27
-rw-r--r--flake.nix9
2 files changed, 32 insertions, 4 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..0619931
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1711668574,
+ "narHash": "sha256-u1dfs0ASQIEr1icTVrsKwg2xToIpn7ZXxW3RHfHxshg=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "219951b495fc2eac67b1456824cc1ec1fd2ee659",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-23.11",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
index f6b2973..973162e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,13 +3,14 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
};
- outputs = { self, nixpkgs } : {
- pkgs = import nixpkgs { system = "x86_64-linux"; };
- defaultPackage.x86_64-linux = pkgs.stdenv.rustPlatform.buildRustPackage rec {
+ outputs = { self, nixpkgs } :
+ let pkgs = import nixpkgs { system = "x86_64-linux"; };
+ in{
+ defaultPackage.x86_64-linux = pkgs.rustPlatform.buildRustPackage rec {
pname = "datagengo";
version = "0.0.1";
src = ./.;
-
+ cargoLock.lockFile = ./Cargo.lock;
};
};
}