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

srec: init at 0-unstable-2015-03-06 #314652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simoneruffini
Copy link
Member

@simoneruffini simoneruffini commented May 25, 2024

Description of changes

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 (as I know it's the default on linux)
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

@DontEatOreo
Copy link
Member

Please rebase and reword your commit title to be srec: init at 0-unstable-2015-03-06 (Also reword your PR title)

Also please move your package to pkgs/by-name/sr/srec/package.nix and remove the package entry from pkgs/top-level/all-packages.nix

pkgs/development/embedded/srec/default.nix Outdated Show resolved Hide resolved
pkgs/development/embedded/srec/default.nix Outdated Show resolved Hide resolved
pkgs/development/embedded/srec/default.nix Outdated Show resolved Hide resolved
@simoneruffini
Copy link
Member Author

Please rebase and reword your commit title to be srec: init at 0-unstable-2015-03-06 (Also reword your PR title)

Also please move your package to pkgs/by-name/sr/srec/package.nix and remove the package entry from pkgs/top-level/all-packages.nix

Why do I need to put in packages by name?

@simoneruffini simoneruffini changed the title init: srec at 2015-03-06 srec: init at 0-unstable-2015-03-06 May 25, 2024
@DontEatOreo
Copy link
Member

Please rebase and reword your commit title to be srec: init at 0-unstable-2015-03-06 (Also reword your PR title)
Also please move your package to pkgs/by-name/sr/srec/package.nix and remove the package entry from pkgs/top-level/all-packages.nix

Why do I need to put in packages by name?

nixpkgs/pkgs/README.md

Lines 134 to 142 in 6de51d9

## Category Hierarchy
[categories]: #category-hierarchy
Most top-level packages are organised in a loosely-categorised directory hierarchy in this directory.
See the [overview](#overview) for which directories are part of this.
This category hierarchy is partially deprecated and will be migrated away over time.
The new `pkgs/by-name` directory ([docs](./by-name/README.md)) should be preferred instead.
The category hierarchy may still be used for packages that should be imported using an alternate `callPackage`, such as `python3Packages.callPackage` or `libsForQt5.callPackage`.

The new `pkgs/by-name` directory ([docs](./by-name/README.md)) should be preferred instead.

@simoneruffini simoneruffini force-pushed the feature/srec branch 2 times, most recently from 2e88618 to 43f3804 Compare May 25, 2024 18:16
@simoneruffini simoneruffini force-pushed the feature/srec branch 2 times, most recently from f9f443e to 5c7f1f7 Compare May 25, 2024 18:24
pkgs/by-name/sr/srec/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/sr/srec/package.nix Outdated Show resolved Hide resolved
@DontEatOreo
Copy link
Member

Result of nixpkgs-review pr 314652 run on aarch64-darwin 1

1 package built:
  • srec

Comment on lines +17 to +21
installPhase = ''
mkdir -p "$out/bin"
cp bin2srec "$out/bin"
cp srec2bin "$out/bin"
'';
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
installPhase = ''
mkdir -p "$out/bin"
cp bin2srec "$out/bin"
cp srec2bin "$out/bin"
'';
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
cp bin2srec "$out/bin"
cp srec2bin "$out/bin"
runHook postInstall
'';
Suggested change
installPhase = ''
mkdir -p "$out/bin"
cp bin2srec "$out/bin"
cp srec2bin "$out/bin"
'';
installPhase = ''
mkdir -p "$out/bin"
cp bin2srec "$out/bin"
cp srec2bin "$out/bin"
'';

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

4 participants