Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lorri: 1.1 -> 1.1.1 #94110

Merged
merged 1 commit into from Jul 28, 2020
Merged

lorri: 1.1 -> 1.1.1 #94110

merged 1 commit into from Jul 28, 2020

Conversation

Profpatsch
Copy link
Member

@Profpatsch Profpatsch commented Jul 28, 2020

Patch release which adds a manpage.

Adding a man and a doc output, and copying the files to the
corresponding directories.

The overrideAttrs is necessary because buildRustPackage does not
allow adding outputs.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

cc @curiousleo

Patch release which adds a manpage.

Adding a `man` and a `doc` output, and copying the files to the
corresponding directories.

The `overrideAttrs` is necessary because `buildRustPackage` does not
allow adding outputs.
@zowoq
Copy link
Contributor

zowoq commented Jul 28, 2020

The overrideAttrs is necessary because buildRustPackage does not
allow adding outputs.

buildRustPackage does allow outputs?

@Profpatsch
Copy link
Member Author

Profpatsch commented Jul 30, 2020 via email

@zowoq
Copy link
Contributor

zowoq commented Jul 30, 2020

diff --git a/pkgs/tools/misc/lorri/default.nix b/pkgs/tools/misc/lorri/default.nix
index c0f5aec1e4d..21bc7aeceec 100644
--- a/pkgs/tools/misc/lorri/default.nix
+++ b/pkgs/tools/misc/lorri/default.nix
@@ -12,7 +12,7 @@
 , Security
 }:
 
-(rustPlatform.buildRustPackage rec {
+rustPlatform.buildRustPackage rec {
   pname = "lorri";
   version = "1.1.1";
 
@@ -35,6 +35,8 @@
   cargoSha256 = "16asbpq47f3zcv4j9rzqx9v1317qz7xjr7dxd019vpr88zyk4fi1";
   doCheck = false;
 
+  outputs = [ "out" "man" "doc" ];
+
   BUILD_REV_COUNT = src.revCount or 1;
   RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix {};
 
@@ -63,7 +65,4 @@
       nixos = nixosTests.lorri;
     };
   };
-}).overrideAttrs (old: {
-  # add man and doc outputs to put our documentation into
-  outputs = old.outputs or [ "out" ] ++ [ "man" "doc" ];
-})
+}

@Profpatsch
Copy link
Member Author

@zowoq well, but how do I know the rust build won’t add a $bin and then it breaks.

@zowoq
Copy link
Contributor

zowoq commented Sep 9, 2020

@zowoq well, but how do I know the rust build won’t add a $bin and then it breaks.

I don't understand what this means?

@Profpatsch
Copy link
Member Author

Profpatsch commented Sep 9, 2020 via email

@Profpatsch
Copy link
Member Author

Opened #97548

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

Successfully merging this pull request may close these issues.

None yet

2 participants