Skip to content

Commit

Permalink
fix: add meta for remove lib.getExe warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Oct 17, 2024
1 parent 4e8b13d commit ca2a5f4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cowsay-yasunori/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
writeShellApplication {
name = "${cowsay.pname}-yasunori";
text = ''
${yasunori-cli} | ${lib.getExe cowsay}
${lib.getExe yasunori-cli} | ${lib.getExe cowsay};
'';
}
6 changes: 5 additions & 1 deletion packages/kuusay/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
cowsay,
}:

stdenv.mkDerivation (finalAttrs: {
let
pname = "kuusay";
in
stdenv.mkDerivation (finalAttrs: {
inherit pname;
version = "1.0.0";

src = lib.cleanSource ./.;
Expand All @@ -26,4 +29,5 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';


})
7 changes: 6 additions & 1 deletion packages/nikuussay/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
cowsay,
}:

stdenv.mkDerivation (finalAttrs: {
let
pname = "nikuussay";
in
stdenv.mkDerivation (finalAttrs: {
inherit pname;
version = "1.0.0";

src = lib.cleanSource ./.;
Expand All @@ -26,4 +29,6 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';

meta.mainProgram = pname;

})
8 changes: 6 additions & 2 deletions packages/yousay/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
cowsay,
}:

stdenv.mkDerivation (finalAttrs: {
let
pname = "yousay";
in
stdenv.mkDerivation (finalAttrs: {
inherit pname;
version = "1.0.0";

src = lib.cleanSource ./.;
Expand All @@ -26,5 +29,6 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';

})
meta.mainProgram = pname;

})

0 comments on commit ca2a5f4

Please sign in to comment.