38 lines
888 B
Nix
38 lines
888 B
Nix
# Template: https://nixos-and-flakes.thiscute.world/development/intro
|
|
{
|
|
description = "Dev Shell for dobutterfliescry.net";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
...
|
|
}: let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
inherit system;
|
|
};
|
|
in {
|
|
devShells."${system}".default = pkgs.mkShell {
|
|
packages = [
|
|
# dev local server
|
|
pkgs.simple-http-server
|
|
|
|
# scss->css transpilation
|
|
# pkgs.sass seems broken on Nix currently, use pkgs.dark-sass instead
|
|
pkgs.dart-sass
|
|
# image baking (from .svg)
|
|
pkgs.imagemagick
|
|
];
|
|
|
|
shell = "${pkgs.bash}/bin/bash";
|
|
};
|
|
};
|
|
}
|