A .vscode/settings.json => .vscode/settings.json +3 -0
@@ 0,0 1,3 @@
+{
+ "nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix"
+}<
\ No newline at end of file
D default.nix => default.nix +0 -21
@@ 1,21 0,0 @@
-{ lib, fetchFromSourcehut, buildGoModule }:
-buildGoModule rec {
- pname = "cap";
- version = "0.1.6";
-
- src = fetchFromSourcehut {
- owner = "~artemis";
- repo = "cap";
- rev = "v${version}";
- sha256 = "sha256-JqIdqe3stODapFYqc6N9N3E/paCL0EW7gKf3smCmns4=";
- };
-
- vendorHash = "sha256-A2Dzc4HtcCPelx0l/1GR2z3LB0gcVcI0B8NJyN22J7c=";
-
- meta = with lib; {
- description = "a simple to use website builder that's meant to be easy to use by default";
- homepage = "https://git.sr.ht/~artemis/cap";
- license = licenses.free;
- platforms = platforms.linux ++ platforms.darwin ++ platforms.windows;
- };
-}
A shell.nix => shell.nix +4 -0
@@ 0,0 1,4 @@
+{ pkgs ? import <nixpkgs> {} }:
+pkgs.mkShell {
+ nativeBuildInputs = with pkgs; [ go python3Full imagemagick ];
+}