Skip to content

Commit

Permalink
Merge pull request #65 from fnxln/ipc
Browse files Browse the repository at this point in the history
Add Nix/NixOS Support
  • Loading branch information
alvarorichard authored Nov 23, 2024
2 parents ebef57a + 4c9e02c commit 85618d8
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
42 changes: 42 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ description = "Go Anime Nix Flake";

inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2405.*.tar.gz";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, nixos-unstable }:
let
allSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];


forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {

pkgs = import nixos-unstable { inherit system; };
});
in
{
packages = forAllSystems ({ pkgs }: {
default = pkgs.buildGoModule {
name = "GoAnime";
go = pkgs.go_1_23;
src = self;
vendorHash = "sha256-dqfgiBMcEhq5hr524BKIbP0ulByWJa7gkoxSy4598v8=";
subPackages = [ "cmd/goanime" ];
propagatedBuildInputs = with pkgs;[ mpv yt-dlp ];
};
});
devShell = forAllSystems ({ pkgs }: pkgs.mkShell {
buildInputs = with pkgs;[ mpv yt-dlp];
});
};
}

0 comments on commit 85618d8

Please sign in to comment.