dobutterfliescry.net/flake.nix

39 lines
888 B
Nix
Raw Normal View History

2025-07-28 23:14:35 +10:00
# Template: https://nixos-and-flakes.thiscute.world/development/intro
{
description = "Dev Shell for dobutterfliescry.net";
inputs = {
2025-08-06 18:58:10 +10:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
2025-07-28 23:14:35 +10:00
};
2025-08-06 18:58:10 +10:00
outputs = {
nixpkgs,
nixpkgs-unstable,
...
}: let
2025-07-28 23:14:35 +10:00
system = "x86_64-linux";
2025-08-06 18:58:10 +10:00
pkgs = import nixpkgs {
inherit system;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
};
2025-07-28 23:14:35 +10:00
in {
2025-08-06 18:58:10 +10:00
devShells."${system}".default = pkgs.mkShell {
packages = [
# dev local server
2025-08-06 19:03:15 +10:00
pkgs.simple-http-server
2025-08-06 17:11:45 +10:00
2025-08-07 09:53:05 +10:00
# scss->css transpilation
# pkgs.sass seems broken on Nix currently, use pkgs.dark-sass instead
pkgs.dart-sass
2025-08-06 18:58:10 +10:00
# image baking (from .svg)
pkgs.imagemagick
];
2025-07-28 23:14:35 +10:00
2025-08-06 18:58:10 +10:00
shell = "${pkgs.bash}/bin/bash";
};
2025-07-28 23:14:35 +10:00
};
}