unreal expectance with unreal deadline

This commit is contained in:
Jakub Kropáček 2024-11-17 23:54:24 +01:00
parent 3f7a862cc5
commit 888244daaa
4 changed files with 33 additions and 21 deletions

View file

@ -15,6 +15,7 @@ Why? Because I can. And because I wanted to learn how to write a web application
- [ ] Tests - [ ] Tests
- [ ] Frontend using templates - [ ] Frontend using templates
- [ ] Authentication middleware - [ ] Authentication middleware
- [ ] Nix flake docker image build
## Used technologies ## Used technologies
- [Go](https://go.dev/) - [Go](https://go.dev/)

View file

@ -2,19 +2,28 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
}; };
outputs = {nixpkgs, ...}: { outputs =
devShells.x86_64-linux = { nixpkgs, ... }:
let let
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
in { in
{
/*
packages.x86_64-linux.default = pkgs.dockerTools.buildLayeredImage {
name = "secret-santa";
tag = "latest";
};
*/
devShells.x86_64-linux = {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = [ packages = [
pkgs.sqlc pkgs.sqlc
(pkgs.callPackage ./nix/sql-migrate.nix {}) (pkgs.callPackage ./nix/sql-migrate.nix { })
(pkgs.callPackage ./nix/actiongraph.nix {}) (pkgs.callPackage ./nix/actiongraph.nix { })
pkgs.sqlite pkgs.sqlite
]; ];
}; };
}; };
}; formatter.x86_64-linux = pkgs.nixfmt-rfc-style;
} };
}

View file

@ -1,7 +1,8 @@
{ stdenv {
, lib stdenv,
, buildGoModule lib,
, fetchFromGitHub buildGoModule,
fetchFromGitHub,
}: }:
buildGoModule rec { buildGoModule rec {
@ -29,4 +30,4 @@ buildGoModule rec {
description = "Go build actiongraph debug visualiser"; description = "Go build actiongraph debug visualiser";
license = licenses.mit; license = licenses.mit;
}; };
} }

View file

@ -1,8 +1,9 @@
{ stdenv {
, lib stdenv,
, buildGoModule lib,
, fetchFromGitHub buildGoModule,
, substituteAll fetchFromGitHub,
substituteAll,
}: }:
buildGoModule rec { buildGoModule rec {
@ -37,4 +38,4 @@ buildGoModule rec {
description = "SQL schema migration tool for Go programs"; description = "SQL schema migration tool for Go programs";
license = licenses.mit; license = licenses.mit;
}; };
} }