diff --git a/.envrc b/.envrc index 1d953f4..29da48d 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,2 @@ -use nix +watch_file shell.nix +use flake diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4ac7af2 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1709703039, + "narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d19f1fe --- /dev/null +++ b/flake.nix @@ -0,0 +1,15 @@ +{ + description = "hb-downloader"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.x86_64-linux.default = ( import ./shell.nix { inherit pkgs; }); + }; +}