Skip to content

Commit 501bae2

Browse files
committed
flake stuff
Signed-off-by: lucasew <[email protected]>
1 parent 1170e6d commit 501bae2

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ assets/dmg_background.tiff
88

99
libnode/
1010
result
11+
flake.lock

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,23 @@ This is not an official regex101 product, but the author of the site gave his pe
1414

1515
## Installation
1616

17+
This repo is packaged as a Nix flake. You can run it with the following command:
18+
19+
```bash
20+
nix run github:lucasew/regex101 --no-write-lock-file
21+
```
22+
23+
If you for some reason need to pass some kind of flag to the program itself you will need to add a `--` to separate Nix arguments and the program arguments.
24+
1725
> **TODO**: fix installers and packaging for everyone but Nix
1826
> **TODO**: make CI stuff to release binaries on each release
1927
28+
## Information
29+
From below this part is stuff from upstream. Things may have changed for other
30+
systems, and honestly, right now, I don't care for anything other than Nix and
31+
NixOS so you are on your own. It may work flawlessly or may not work at all. I
32+
didn't test. PRs welcome BTW.
33+
2034
## Requirements (Development)
2135

2236
- Qt 5 libraries (Requirement for development)

flake.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
description = "regex101, but fully offline";
3+
4+
inputs = {
5+
nixpkgs.url = "nixpkgs";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = {nixpkgs, flake-utils, ...}:
10+
flake-utils.lib.eachDefaultSystem (system: let
11+
pkgs = nixpkgs.legacyPackages.${system};
12+
in {
13+
packages.default = import ./default.nix { inherit pkgs; };
14+
});
15+
}

0 commit comments

Comments
 (0)