summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpennae <pennae.git@quasiparticle.net>2022-01-21 13:18:41 +0100
committerpennae <pennae.git@quasiparticle.net>2022-01-21 13:25:16 +0100
commit5632a445619f2f275951fbaf5523953fc93b8a81 (patch)
tree42fdcb9ad51ec76d983565b2aacd3669c5e5531b
parent8e3cf434852e25a53a14aa5b4c7cdd02b54fc0cd (diff)
downloadseacrit-5632a445619f2f275951fbaf5523953fc93b8a81.tar.gz
seacrit-5632a445619f2f275951fbaf5523953fc93b8a81.tar.xz
seacrit-5632a445619f2f275951fbaf5523953fc93b8a81.zip
make a flake
-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 ]);
}