mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 11:05:37 +00:00
arrow image package derivation
This commit is contained in:
parent
402d168304
commit
358206f6fb
2
.github/workflows/arrow.yml
vendored
2
.github/workflows/arrow.yml
vendored
@ -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'
|
||||||
|
10
flake.nix
10
flake.nix
@ -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
|
||||||
|
@ -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"
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user