aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-04-03 21:52:41 +0200
committerAlex Auvolat <alex@adnab.me>2024-04-03 21:52:41 +0200
commitc246a42ee4107025f15b7ee7b4d2d65d9a9c375f (patch)
tree7991161b540f3fac038b5b9cdbf173086bb2d7ad
parentfdc50b62f2aa9788cfbd707a7d82ad08a06fdad5 (diff)
downloaddatagengo-main.tar.gz
datagengo-main.zip
update flakeHEADmain
-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;
};
};
}