From d7c16ed468292456de81ae12a0fce73fc23bd0b2 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 5 Oct 2023 10:54:33 +0100 Subject: add default.nix --- .gitignore | 1 + ...9a3ed07f6637086f5cac7b06f1ad459eb688b85200495045e.json | 15 +++++++++++++++ default.nix | 10 ++++++++++ 3 files changed, 26 insertions(+) create mode 100644 .sqlx/query-02f9efc3c66ab999a3ed07f6637086f5cac7b06f1ad459eb688b85200495045e.json create mode 100644 default.nix diff --git a/.gitignore b/.gitignore index ea8c4bf..07c12f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +result diff --git a/.sqlx/query-02f9efc3c66ab999a3ed07f6637086f5cac7b06f1ad459eb688b85200495045e.json b/.sqlx/query-02f9efc3c66ab999a3ed07f6637086f5cac7b06f1ad459eb688b85200495045e.json new file mode 100644 index 0000000..3875b63 --- /dev/null +++ b/.sqlx/query-02f9efc3c66ab999a3ed07f6637086f5cac7b06f1ad459eb688b85200495045e.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "insert into users(username, password) values ($1, $2)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Varchar", + "Varchar" + ] + }, + "nullable": [] + }, + "hash": "02f9efc3c66ab999a3ed07f6637086f5cac7b06f1ad459eb688b85200495045e" +} diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..d097168 --- /dev/null +++ b/default.nix @@ -0,0 +1,10 @@ +{ pkgs ? import { } }: +pkgs.rustPlatform.buildRustPackage rec { + pname = "pinussy"; + version = "0.1"; + cargoLock.lockFile = ./Cargo.lock; + src = pkgs.lib.cleanSource ./.; + + nativeBuildInputs = [ pkgs.pkgconfig ]; + buildInputs = with pkgs.stdenv.lib; [ pkgs.openssl ]; +} -- cgit