diff --git a/modules/applications/edopro.nix b/modules/applications/edopro.nix new file mode 100644 index 0000000..198836a --- /dev/null +++ b/modules/applications/edopro.nix @@ -0,0 +1,41 @@ +# TODO: make this actually build +{ pkgs, stdenv, ... }: +let + # It's considered good practice to specify the version in the derivation name + version = "38.1.1"; + # In case the name they build it into changes I can just modify this + execName = "EDOPro"; + edopro = stdenv.mkDerivation rec { + name = "edopro-${version}"; + + src = builtins.path { + path = pkgs.fetchurl { + url = + "https://mega.nz/file/pfglCAyK#IlqEOy1kBLmFiIDu4z6afbj1wTcWTFTyvYzPW0D2m24"; + sha256 = + "99be240086ccae834998b821df5abb17f7d22d26fb757fc5106b4812ca4b3f36"; + }; + name = "edopro-source"; + }; + + # Add the derivation to the PATH + buildInputs = with pkgs; [ + mono # this is needed for the ai support + freetype # font rendering engine + ]; + + # This just moves the bin over and calls it a day + installPhase = '' + # Make the output directory + mkdir -p $out/bin + + # Copy the script there and make it executable + cp ${execName} $out/bin/ + chmod +x $out/bin/${execName} + ''; + }; + +in stdenv.mkDerivation { + name = "edopro-environment"; + buildInputs = [ edopro ]; +} diff --git a/modules/applications/misc.nix b/modules/applications/misc.nix index cf3c2a4..98cfc14 100644 --- a/modules/applications/misc.nix +++ b/modules/applications/misc.nix @@ -29,6 +29,7 @@ gimp # image editing korganizer # calendar libreoffice # free office suite + # edopro # yugioh simulator (my derivation doesn't work yet) akonadi ]; } diff --git a/modules/dev/default.nix b/modules/dev/default.nix index 580daa4..0d107d5 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -1,5 +1,11 @@ { pkgs, ... }: { home-manager.users.adrielus.home.packages = with pkgs; [ gcc ]; - imports = - [ ./nix.nix ./purescript.nix ./javascript.nix ./rust.nix ./haskell ]; + imports = [ + ./nix.nix + ./purescript.nix + ./javascript.nix + ./fsharp.nix + ./rust.nix + ./haskell + ]; } diff --git a/modules/dev/fsharp.nix b/modules/dev/fsharp.nix new file mode 100644 index 0000000..58aa114 --- /dev/null +++ b/modules/dev/fsharp.nix @@ -0,0 +1,3 @@ +{ pkgs, ... }: { + home-manager.users.adrielus.home.packages = with pkgs; [ dotnet-sdk mono ]; +} diff --git a/modules/overlay.nix b/modules/overlay.nix index 5f2b06f..3211748 100644 --- a/modules/overlay.nix +++ b/modules/overlay.nix @@ -1,6 +1,7 @@ { ... }: let imports = import ../nix/sources.nix; + edoproPackage = import ./applications/edopro.nix; unstable = import imports.nixpkgs-unstable { config.allowUnfree = true; }; in { nixpkgs.overlays = [ @@ -14,6 +15,9 @@ in { cached-nix-shell = callPackage imports.cached-nix-shell { }; easy-purescript-nix = callPackage imports.easy-purescript-nix { }; + # This is a derivation I made myself for edopro + edopro = callPackage edoproPackage { }; + all-hies = import imports.all-hies { }; snack = (import imports.snack).snack-exe; @@ -21,6 +25,7 @@ in { brave = unstable.brave; vscodium = unstable.vscodium; deno = unstable.deno; + dotnet-sdk = dotnet-sdk_3; }) ];