arrow image package derivation

This commit is contained in:
Noah Masur 2024-04-14 08:28:39 -04:00
parent 402d168304
commit 358206f6fb
No known key found for this signature in database
3 changed files with 21 additions and 20 deletions

View File

@ -65,7 +65,7 @@ jobs:
# Build the image # Build the image
- name: Build Image - name: Build Image
if: inputs.rebuild && inputs.action != 'destroy' if: inputs.rebuild && inputs.action != 'destroy'
run: nix build .#image.arrow run: nix build .#arrow
- name: Upload Image to S3 - name: Upload Image to S3
if: inputs.rebuild && inputs.action != 'destroy' if: inputs.rebuild && inputs.action != 'destroy'

View File

@ -341,12 +341,10 @@
in in
{ {
x86_64-linux.staff = staff "x86_64-linux"; x86_64-linux.staff = staff "x86_64-linux";
x86_64-linux.image = { x86_64-linux.arrow = inputs.nixos-generators.nixosGenerate {
arrow = inputs.nixos-generators.nixosGenerate { system = "x86_64-linux";
system = "x86_64-linux"; format = "iso";
format = "iso"; modules = import ./hosts/arrow/modules.nix { inherit inputs globals overlays; };
modules = import ./hosts/arrow/modules.nix { inherit inputs globals overlays; };
};
}; };
# Package Neovim config into standalone package # Package Neovim config into standalone package

View File

@ -3,17 +3,20 @@ inputs: _final: prev: {
# Based on: # Based on:
# https://git.sr.ht/~rycee/nur-expressions/tree/master/item/pkgs/firefox-addons/default.nix#L34 # https://git.sr.ht/~rycee/nur-expressions/tree/master/item/pkgs/firefox-addons/default.nix#L34
bypass-paywalls-clean = let addonId = "magnolia@12.34"; bypass-paywalls-clean =
in prev.stdenv.mkDerivation rec { let
pname = "bypass-paywalls-clean"; addonId = "magnolia@12.34";
version = "3.4.9.0"; in
src = inputs.bypass-paywalls-clean + "/bypass_paywalls_clean-3.6.3.0.xpi"; prev.stdenv.mkDerivation rec {
preferLocalBuild = true; pname = "bypass-paywalls-clean";
allowSubstitutes = true; version = "3.4.9.0";
buildCommand = '' src = inputs.bypass-paywalls-clean + "/bypass_paywalls_clean-3.6.3.0.xpi";
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" preferLocalBuild = true;
mkdir -p "$dst" allowSubstitutes = true;
install -v -m644 "${src}" "$dst/${addonId}.xpi" buildCommand = ''
''; dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
}; mkdir -p "$dst"
install -v -m644 "${src}" "$dst/${addonId}.xpi"
'';
};
} }