diff --git a/.gitignore b/.gitignore index 2ffe9c7..31f715b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules target *.db +.direnv diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..f7bac09 --- /dev/null +++ b/flake.lock @@ -0,0 +1,73 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1637014545, + "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1648648646, + "narHash": "sha256-pHAq/GvsP7zRHkUTCs+4d31C0IEtTIuC6/TFASIA+zg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "efea022d6fe0da84aa6613d4ddeafb80de713457", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-21.11", + "type": "indirect" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1637453606, + "narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8afc4e543663ca0a6a4f496262cd05233737e732", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "oxalica": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "narHash": "sha256-PLhquuUzdO9jjtAEwhP0Q2efsumX2Ayh/mdNFtJtgM0=", + "type": "tarball", + "url": "https://github.com/oxalica/rust-overlay/archive/master.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://github.com/oxalica/rust-overlay/archive/master.tar.gz" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "oxalica": "oxalica" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 000851f..259bd06 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "demo Tauri application"; + description = "Kampanja Kontrolado"; inputs = { nixpkgs.url = "nixpkgs/nixos-21.11"; @@ -21,15 +21,16 @@ }; in pkgs.mkShell { - name = "tauri-demo-shell"; + name = "kampanja-kontrolada"; buildInputs = [ - rust - pkgs.nodejs pkgs.gtk3 - pkgs.webkit pkgs.libappindicator - pkgs.pkg-config + pkgs.nodejs pkgs.openssl + pkgs.pkg-config + pkgs.sqlite + pkgs.webkit + rust ]; }; }; diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 9bedb05..0000000 --- a/shell.nix +++ /dev/null @@ -1,24 +0,0 @@ -let - rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"); - pkgs = import { overlays = [ rust_overlay ]; }; - unstable = import {}; - rust = pkgs.rust-bin.stable."1.59.0".default.override { - extensions = [ "rust-src" ]; - }; - -in pkgs.mkShell { - name = "kampanja-kontrolado"; - - nativeBuildInputs = [ - pkgs.glib - pkgs.gtk3 - pkgs.libpng - pkgs.nodejs - pkgs.openssl - pkgs.pkg-config - pkgs.sqlite - pkgs.wrapGAppsHook - rust - unstable.rust-analyzer - ]; -}