Skip to content

filen-cli: init at 0.0.19#359586

Closed
sernl wants to merge 2 commits intoNixOS:masterfrom
sernl:pkg/filen-cli
Closed

filen-cli: init at 0.0.19#359586
sernl wants to merge 2 commits intoNixOS:masterfrom
sernl:pkg/filen-cli

Conversation

@sernl
Copy link

@sernl sernl commented Nov 27, 2024

Adding filen command-line support filen-cli on NixOS. Have done tests on local machines regarding:

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Nov 27, 2024
@NixOSInfra NixOSInfra added the 12.first-time contribution This PR is the author's first one; please be gentle! label Nov 27, 2024
@xanderio
Copy link
Contributor

xanderio commented Nov 27, 2024

Can we maybe build this from source? https://nixos.org/manual/nixpkgs/stable/#javascript-buildNpmPackage

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 28, 2024
@sernl
Copy link
Author

sernl commented Dec 7, 2024

Can we maybe build this from source? https://nixos.org/manual/nixpkgs/stable/#javascript-buildNpmPackage

Sorry for my late response, I've been really busy with end of year things. I'll take a look at building from source with the docs you shared, thanks for this!


else
throw "Unsupported platform: ${stdenv.hostPlatform.system}";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs = [ autoPatchelfHook ];

Otherwise the binary will not run properly.

doCheck = false;

unpackPhase = ":";
configurePhase = ":";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
configurePhase = ":";
dontConfigure = true;

chmod +x $out/bin/${pname}
'';

fixupPhase = ":";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fixupPhase = ":";

This phase is crucial for binary packages.

'';

meta = with lib; {
description = "A headless CLI that provides a set of useful tools for interacting with Filen cloud storage securely";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "A headless CLI that provides a set of useful tools for interacting with Filen cloud storage securely";
description = "CLI to interact with Filen cloud storage securely";

license = licenses.agpl3Only;
mainProgram = "filen-cli";
platforms = platforms.unix;
maintainers = [ maintainers.onahp ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
maintainers = [ maintainers.onahp ];
maintainers = [ maintainers.onahp ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];

@FliegendeWurst FliegendeWurst marked this pull request as draft January 28, 2025 18:13
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 2, 2025
@nixpkgs-ci nixpkgs-ci bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 29, 2025
@wolfgangwalther
Copy link
Contributor

Done in #375965.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants