summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocaml-gettext
diff options
context:
space:
mode:
authorMalo Bourgon <mbourgon@gmail.com>2022-05-17 17:57:46 -0700
committerVincent Laporte <vbgl@users.noreply.github.com>2022-05-20 10:13:29 +0200
commitba54ba93161b96a3f5a9f0072be2930bcd4dd4e8 (patch)
tree2012c5c5aac887ef0f6065fa5fa95a558de12688 /pkgs/development/ocaml-modules/ocaml-gettext
parentef3bf2e60285d3f3299755c28a55918440d5c300 (diff)
downloadnixpkgs-ba54ba93161b96a3f5a9f0072be2930bcd4dd4e8.tar
nixpkgs-ba54ba93161b96a3f5a9f0072be2930bcd4dd4e8.tar.gz
nixpkgs-ba54ba93161b96a3f5a9f0072be2930bcd4dd4e8.tar.bz2
nixpkgs-ba54ba93161b96a3f5a9f0072be2930bcd4dd4e8.tar.lz
nixpkgs-ba54ba93161b96a3f5a9f0072be2930bcd4dd4e8.tar.xz
nixpkgs-ba54ba93161b96a3f5a9f0072be2930bcd4dd4e8.tar.zst
nixpkgs-ba54ba93161b96a3f5a9f0072be2930bcd4dd4e8.zip
ocamlPackages: add meta.mainProgram to packages with multiple executables
where none of the executables match the package's `name` or `pname`, and
one of the executables is the obvious `mainProgram`.
Diffstat (limited to 'pkgs/development/ocaml-modules/ocaml-gettext')
-rw-r--r--pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix2
-rw-r--r--pkgs/development/ocaml-modules/ocaml-gettext/default.nix1
-rw-r--r--pkgs/development/ocaml-modules/ocaml-gettext/stub.nix4
3 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix b/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix
index 012f3b61ff3..d3606330019 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/camomile.nix
@@ -9,7 +9,7 @@ buildDunePackage {
   doCheck = true;
   checkInputs = [ ounit fileutils ];
 
-  meta = ocaml_gettext.meta // {
+  meta = (builtins.removeAttrs ocaml_gettext.meta  [ "mainProgram" ]) // {
     description = "Internationalization library using camomile (i18n)";
   };
 
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/default.nix b/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
index 7525a10030e..fa8857f36b3 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
@@ -28,5 +28,6 @@ buildDunePackage rec {
     homepage = "https://github.com/gildor478/ocaml-gettext";
     license = licenses.lgpl21;
     maintainers = [ maintainers.volth ];
+    mainProgram = "ocaml-gettext";
   };
 }
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix b/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
index 51e902b9140..950ac652e54 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
@@ -4,7 +4,7 @@ buildDunePackage rec {
 
   pname = "gettext-stub";
 
-  inherit (ocaml_gettext) src version useDune2 meta;
+  inherit (ocaml_gettext) src version useDune2;
 
   buildInputs = [ dune-configurator ];
 
@@ -13,4 +13,6 @@ buildDunePackage rec {
   doCheck = true;
 
   checkInputs = [ ounit ];
+
+  meta = builtins.removeAttrs ocaml_gettext.meta  [ "mainProgram" ];
 }