diff options
author | Alex Auvolat <alex@adnab.me> | 2024-04-03 21:52:41 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-04-03 21:52:41 +0200 |
commit | c246a42ee4107025f15b7ee7b4d2d65d9a9c375f (patch) | |
tree | 7991161b540f3fac038b5b9cdbf173086bb2d7ad | |
parent | fdc50b62f2aa9788cfbd707a7d82ad08a06fdad5 (diff) | |
download | datagengo-c246a42ee4107025f15b7ee7b4d2d65d9a9c375f.tar.gz datagengo-c246a42ee4107025f15b7ee7b4d2d65d9a9c375f.zip |
-rw-r--r-- | flake.lock | 27 | ||||
-rw-r--r-- | flake.nix | 9 |
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 +} @@ -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; }; }; } |