This repository has been archived by the owner on Dec 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nix): updated nix package and configuration
- Loading branch information
Showing
4 changed files
with
22 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,38 @@ | ||
{ | ||
description = "Filebot - program to automaticlly moving files from one place to another"; | ||
description = | ||
"Filebot - program to automaticlly moving files from one place to another"; | ||
|
||
inputs.nixpkgs.url = "nixpkgs/nixos-unstable"; | ||
|
||
outputs = { self, nixpkgs, }: | ||
let | ||
pkgs = import nixpkgs { system = "x86_64-linux"; }; | ||
filebot = pkgs.callPackage ./default.nix { }; | ||
go = pkgs.go; | ||
in | ||
{ | ||
packages.x86_64-linux.default = filebot; | ||
nixosModules."filebot" = import ./service.nix; | ||
in rec { | ||
packages.x86_64-linux.default = pkgs.buildGoModule { | ||
name = "filebot"; | ||
src = ./.; | ||
version = "v1.0.0"; | ||
|
||
vendorHash = "sha256-zga1pCBqisDLzDN6rO68iCQlGXmTfkUk+fqNI54yhNo="; | ||
|
||
patches = [ "./patches/fix(config)__changed_path_for_nix_build.patch" ]; | ||
}; | ||
nixosModules."filebot" = pkgs.callPackage ./service.nix { filebot = packages.x86_64-linux.default; }; | ||
devShells.x86_64-linux.default = pkgs.mkShell { | ||
hardeningDisable = [ "all" ]; | ||
buildInputs = with pkgs; [ | ||
# Go tools | ||
go | ||
golangci-lint | ||
|
||
# Nix | ||
nixfmt | ||
|
||
# Github actions | ||
act | ||
]; | ||
|
||
GOROOT = "${go}/share/go"; | ||
GOROOT = "${pkgs.go}/share/go"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters