diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bae495 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +dist +result +node_modules +lakewm.zip \ No newline at end of file diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..1a67f61 --- /dev/null +++ b/default.nix @@ -0,0 +1,15 @@ +{ self, pkgs, ... }: + +pkgs.stdenv.mkDerivation { + name = "lakewm"; + buildInputs = with pkgs; [ + tree + ]; + src = self; + buildPhase = '' + tree >> tree.txt + ''; + unpackPhase = '' + mkdir $out + ''; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..cefdad5 --- /dev/null +++ b/flake.lock @@ -0,0 +1,64 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1747312588, + "narHash": "sha256-MmJvj6mlWzeRwKGLcwmZpKaOPZ5nJb/6al5CXqJsgjo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b1bebd0fe266bbd1820019612ead889e96a8fa2d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 6aee108..867818a 100644 --- a/flake.nix +++ b/flake.nix @@ -8,15 +8,27 @@ }; outputs = - { nixpkgs, flake-utils, ... }: - flake-utils.lib.eachDefaultSystem ( + inputs: + let + nixpkgs = inputs.nixpkgs; + in + inputs.flake-utils.lib.eachDefaultSystem ( system: let pkgs = nixpkgs.legacyPackages.${system}; in { devShells.default = pkgs.mkShell { - packages = [ ]; + packages = with pkgs; [ + nodejs + typescript + glib + ]; + }; + + packages.default = import ./default.nix { + inherit (inputs) self; + inherit pkgs; }; } );