diff options
Diffstat (limited to 'sys/nixpkgs/pkgs/generate_moz_extension')
-rw-r--r-- | sys/nixpkgs/pkgs/generate_moz_extension/default.nix | 16 | ||||
-rw-r--r-- | sys/nixpkgs/pkgs/generate_moz_extension/generate_firefox_extensions.nix | 20 |
2 files changed, 36 insertions, 0 deletions
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 + ]; +} |