summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix12
-rw-r--r--util/default.nix8
2 files changed, 17 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..b7709c7
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,12 @@
+{
+ inputs = {
+ };
+
+ outputs = { self }: {
+ overlay = final: prev: {
+ seacrit = final.callPackage ./util {};
+ };
+
+ nixosModule = import ./modules;
+ };
+}
diff --git a/util/default.nix b/util/default.nix
index 688611b..f97784d 100644
--- a/util/default.nix
+++ b/util/default.nix
@@ -1,11 +1,13 @@
-{ pkgs ? import <nixpkgs> {} }:
+{ substituteAll
+, perl
+}:
-pkgs.substituteAll {
+substituteAll {
pname = "seacrit";
version = "0.0.1";
src = ./seacrit;
dir = "bin";
isExecutable = true;
- perl = pkgs.perl.withPackages (p: with p; [ JSON FileTemp ]);
+ perl = perl.withPackages (p: with p; [ JSON FileTemp ]);
}