diff --git a/default.nix b/default.nix index 764dec7..9ab7e71 100644 --- a/default.nix +++ b/default.nix @@ -1,12 +1,3 @@ {pkgs ? import {}}: -pkgs.buildGoModule rec { - name = "dotenv"; - version = "0.0.1"; - vendorSha256 = "0092fdfs73vxf3f9yllxg037i1mgap0x11s5xbs2b0x8s1dl59qm"; - src = ./.; - meta = with pkgs.lib; { - description = "Dotenv as a binary that loads the dotenv and calls the program"; - homepage = "https://github.com/lucasew/dotenv"; - platforms = platforms.linux; - }; -} + +pkgs.callPackage ./package.nix {} diff --git a/package.nix b/package.nix new file mode 100644 index 0000000..23a2a41 --- /dev/null +++ b/package.nix @@ -0,0 +1,18 @@ +{ buildGoModule +, lib +}: + +buildGoModule { + name = "dotenv"; + version = "0.0.1"; + + vendorHash = "sha256-FadCW9CogyX06kWH0MFVr4Z4BnidUp/ccH2Po11zIgE="; + + src = ./.; + + meta = with lib; { + description = "Dotenv as a binary that loads the dotenv and calls the program"; + homepage = "https://github.com/lucasew/dotenv"; + platforms = platforms.linux; + }; +}