flake: now builds with nix build
This commit is contained in:
parent
a3b62a863a
commit
39984e7c6a
2 changed files with 20 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
.direnv
|
||||
GoCalTui
|
||||
bin
|
||||
result
|
||||
|
|
|
|||
21
flake.nix
21
flake.nix
|
|
@ -25,6 +25,7 @@
|
|||
nixpkgs.lib.genAttrs supportedSystems (
|
||||
system:
|
||||
f {
|
||||
inherit (nixpkgs) lib;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
}
|
||||
);
|
||||
|
|
@ -32,10 +33,26 @@
|
|||
{
|
||||
# Schemas tell Nix about the structure of your flake's outputs
|
||||
schemas = flake-schemas.schemas;
|
||||
|
||||
packages = forEachSupportedSystem (
|
||||
{ pkgs, lib }:
|
||||
{
|
||||
default = pkgs.callPackage (
|
||||
{ buildGoModule }:
|
||||
buildGoModule {
|
||||
pname = "GoCalTui";
|
||||
version = "0.0.1";
|
||||
src = builtins.path {
|
||||
name = "source";
|
||||
path = ./.;
|
||||
};
|
||||
vendorHash = "sha256-SQHzChRwEx8VYJwXcZXTMDgILrhhRvGqrdQ1k3lFWgk=";
|
||||
}
|
||||
) { };
|
||||
}
|
||||
);
|
||||
# Development environments
|
||||
devShells = forEachSupportedSystem (
|
||||
{ pkgs }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
# Pinned packages available in the environment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue