diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..3550a30f --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 72ba34d8..9772ce0c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with GNU Mes. If not, see . +.direnv/ + *- *~ .#* diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..a4581a14 --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1697851771, + "narHash": "sha256-ISqABVGU0Bt2EgG34fV2v43tfon0MNDrwUP6c4tm73c=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "0686263a235a394f96980d83e43d5ef371e83cf7", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..0b56f208 --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, utils }: + let supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; + in (utils.lib.eachSystem supportedSystems (system: + let pkgs = import nixpkgs { inherit system; }; + in rec { + formatter = pkgs.nixfmt; + + devShells.rustybar = pkgs.mkShellNoCC { + packages = with pkgs; [ + perl + guile + gnumake + minimal-bootstrap.kaem + minimal-bootstrap.mescc-tools + ]; + + CC="M2-Planet"; + }; + devShells.default = devShells.rustybar; + })); +} +