about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-03-23 15:30:22 +0100
committerSoispha <soispha@vhack.eu>2024-03-23 15:30:22 +0100
commit9cbf7089a65f579c5f5a2300ac2532f0e3c7da4d (patch)
tree139a4125ac0fb216b1405d8a513a0e20bb9c8824 /sys/nixpkgs/pkgs
parentfeat(pkgs/generate_moz_extensions): Vendor it (diff)
downloadnixos-config-9cbf7089a65f579c5f5a2300ac2532f0e3c7da4d.tar.gz
nixos-config-9cbf7089a65f579c5f5a2300ac2532f0e3c7da4d.zip
fix(flake): Use new vendored `generate_firefox_extensions` binary
Diffstat (limited to 'sys/nixpkgs/pkgs')
-rw-r--r--sys/nixpkgs/pkgs/default.nix2
-rw-r--r--sys/nixpkgs/pkgs/generate_moz_extension/default.nix16
-rw-r--r--sys/nixpkgs/pkgs/generate_moz_extension/generate_firefox_extensions.nix20
3 files changed, 38 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/default.nix b/sys/nixpkgs/pkgs/default.nix
index c5959bb4..e8630bb0 100644
--- a/sys/nixpkgs/pkgs/default.nix
+++ b/sys/nixpkgs/pkgs/default.nix
@@ -3,6 +3,7 @@
   sysLib,
 }: let
   comments = import ./comments;
+  generate_firefox_extensions = import ./generate_moz_extension;
   nvim_plugs = import ./plgs-pkgs;
   scripts = import ./scripts {inherit sysLib config;};
   snap-sync-forked = (import ./snap-sync-forked) {inherit sysLib;};
@@ -12,6 +13,7 @@
 
   overlays =
     comments
+    ++ generate_firefox_extensions
     ++ nvim_plugs
     ++ scripts
     ++ snap-sync-forked
diff --git a/sys/nixpkgs/pkgs/generate_moz_extension/default.nix b/sys/nixpkgs/pkgs/generate_moz_extension/default.nix
new file mode 100644
index 00000000..be734eee
--- /dev/null
+++ b/sys/nixpkgs/pkgs/generate_moz_extension/default.nix
@@ -0,0 +1,16 @@
+[
+  (
+    final: prev: {
+      generate_firefox_extensions = import ./generate_firefox_extensions.nix {
+        inherit
+          (prev)
+          rustPlatform
+          # Dependencies
+          
+          openssl
+          pkg-config
+          ;
+      };
+    }
+  )
+]
diff --git a/sys/nixpkgs/pkgs/generate_moz_extension/generate_firefox_extensions.nix b/sys/nixpkgs/pkgs/generate_moz_extension/generate_firefox_extensions.nix
new file mode 100644
index 00000000..abd95c77
--- /dev/null
+++ b/sys/nixpkgs/pkgs/generate_moz_extension/generate_firefox_extensions.nix
@@ -0,0 +1,20 @@
+{
+  rustPlatform,
+  openssl,
+  pkg-config,
+}:
+rustPlatform.buildRustPackage {
+  pname = "generate_firefox_extensions";
+  version = "0.1.0";
+
+  src = ./.;
+  cargoLock = {
+    lockFile = ./Cargo.lock;
+  };
+  buildInputs = [
+    openssl # needed for openssl-sys crate
+  ];
+  nativeBuildInputs = [
+    pkg-config # needed for openssl dependency
+  ];
+}