Skip to content

Commit

Permalink
feat(development): add some things for Arch package development
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Nov 12, 2023
1 parent 5ddd02d commit c4990bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ in {
nixpkgs-review
nodePackages_latest.prettier
nodejs
pacman
ruff
shellcheck
shfmt
Expand Down
13 changes: 13 additions & 0 deletions nixos/modules/development.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
}:
with lib; let
cfg = config.dr460nixed.development;

# Retrieve updpksums script from Arch - fix me: shebang
updpkgsums = pkgs.writeScriptBin "updpkgsums" (builtins.readFile updpkgsumsSrc);
updpkgsumsSrc = builtins.fetchurl {
url = "https://gitlab.archlinux.org/pacman/pacman-contrib/-/raw/master/src/updpkgsums.sh.in";
sha256 = "0c7fmvhdwkfmh715kwj4dkls3xzrzxxhqw2930r69yfzr1ijsppl";
};
in {
options.dr460nixed.development = {
enable =
Expand Down Expand Up @@ -43,6 +50,12 @@ in {
# Allow building sdcard images for Raspi
nixpkgs.config.allowUnsupportedSystem = true;

# Supply makepkg.conf for pacman
environment = {
etc."makepkg.conf".source = "${pkgs.pacman}/etc/makepkg.conf";
systemPackages = [updpkgsums];
};

# Wireshark
programs.wireshark.enable = true;

Expand Down

0 comments on commit c4990bc

Please sign in to comment.