diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..cd0b603 --- /dev/null +++ b/flake.lock @@ -0,0 +1,24 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1690630041, + "narHash": "sha256-gbnvqm5goS9DSKAqGFpq3398aOpwejmq4qWikqmQyRo=", + "path": "/nix/store/qxgp86sdhxwzj0k89kz2aaw0xw7d8f6i-source", + "rev": "d57e8c535d4cbb07f441c30988ce52eec69db7a8", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9aea9d5 --- /dev/null +++ b/flake.nix @@ -0,0 +1,12 @@ +{ + description = "My website"; + + outputs = { self, nixpkgs }: + { + devShells.x86_64-linux.default = import ./shell.nix { + pkgs = nixpkgs.legacyPackages."x86_64-linux"; + }; + + defaultPackage.x86_64-linux = self.devShells.x86_64-linux.default; + }; +} diff --git a/shell.nix b/shell.nix index 4c4f61b..893c6bf 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,5 @@ -with import {}; let +{ pkgs, ... }: +with pkgs; let json-minify = (buildRubyGem { gemName = "json-minify";