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

fancy-motd: init at unstable-2021-05-15 #122885

Merged
merged 1 commit into from May 17, 2021
Merged

fancy-motd: init at unstable-2021-05-15 #122885

merged 1 commit into from May 17, 2021

Conversation

rhoriguchi
Copy link
Contributor

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.

@rhoriguchi rhoriguchi changed the title fancy-motd: init at 20213004 fancy-motd: init at 20211305 May 13, 2021
@rhoriguchi rhoriguchi changed the title fancy-motd: init at 20211305 fancy-motd: init at 20210513 May 13, 2021
pkgs/tools/system/fancy-motd/default.nix Outdated Show resolved Hide resolved
pkgs/tools/system/fancy-motd/default.nix Outdated Show resolved Hide resolved
@legendofmiracles
Copy link
Contributor

legendofmiracles commented May 13, 2021

While this builds, when I try to run this i always get this error, regardless of if it's installed inside with my user profile or inside the nix-review shell:

$ motd
/nix/store/02c63zqrbzqbrxk4nr2qy4zxki6i30gm-fancy-motd-20211305/lib/framework.sh: line 2: /nix/store/02c63zqrbzqbrxk4nr2qy4zxki6i30gm-fancy-motd-20211305/lib/config.sh: No such file or directory

@r-rmcgibbo
Copy link

Result of nixpkgs-review pr 122885 at 45f8fbad run on x86_64-linux 1

1 package built successfully:
  • fancy-motd
2 suggestions:
  • warning: build-tools-in-build-inputs

    bc is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

    Near pkgs/tools/system/fancy-motd/default.nix:14:3:

       |
    14 |   buildInputs = [ bc curl figlet fortune gawk iproute2 ];
       |   ^
    
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/tools/system/fancy-motd/default.nix:27:3:

       |
    27 |   installPhase = ''
       |   ^
    

@rhoriguchi rhoriguchi changed the title fancy-motd: init at 20210513 fancy-motd: init at unstable-2021-05-13 May 13, 2021
@rhoriguchi
Copy link
Contributor Author

While this builds, when I try to run this i always get this error, regardless of if it's installed inside with my user profile or inside the nix-review shell:

$ motd
/nix/store/02c63zqrbzqbrxk4nr2qy4zxki6i30gm-fancy-motd-20211305/lib/framework.sh: line 2: /nix/store/02c63zqrbzqbrxk4nr2qy4zxki6i30gm-fancy-motd-20211305/lib/config.sh: No such file or directory

I've made some upstream changes today and forgot to include the config.sh. It should work now if you run motd.

@legendofmiracles
Copy link
Contributor

legendofmiracles commented May 14, 2021

Result of nixpkgs-review pr 122885 run on x86_64-linux 1

1 package built:
  • fancy-motd

Works now for me too 🎉
Thanks for packaging this!

@rhoriguchi rhoriguchi changed the title fancy-motd: init at unstable-2021-05-13 fancy-motd: init at unstable-2021-05-15 May 16, 2021
@SuperSandro2000 SuperSandro2000 merged commit 63365ac into NixOS:master May 17, 2021
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

5 participants