1
Fork 0

feat: edopro derivation (which doesnt work yet)

This commit is contained in:
Matei Adriel 2020-05-30 23:19:57 +03:00
parent 1aad2582da
commit 1f73589d8b
5 changed files with 58 additions and 2 deletions

View file

@ -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 ];
}

View file

@ -29,6 +29,7 @@
gimp # image editing gimp # image editing
korganizer # calendar korganizer # calendar
libreoffice # free office suite libreoffice # free office suite
# edopro # yugioh simulator (my derivation doesn't work yet)
akonadi akonadi
]; ];
} }

View file

@ -1,5 +1,11 @@
{ pkgs, ... }: { { pkgs, ... }: {
home-manager.users.adrielus.home.packages = with pkgs; [ gcc ]; home-manager.users.adrielus.home.packages = with pkgs; [ gcc ];
imports = imports = [
[ ./nix.nix ./purescript.nix ./javascript.nix ./rust.nix ./haskell ]; ./nix.nix
./purescript.nix
./javascript.nix
./fsharp.nix
./rust.nix
./haskell
];
} }

3
modules/dev/fsharp.nix Normal file
View file

@ -0,0 +1,3 @@
{ pkgs, ... }: {
home-manager.users.adrielus.home.packages = with pkgs; [ dotnet-sdk mono ];
}

View file

@ -1,6 +1,7 @@
{ ... }: { ... }:
let let
imports = import ../nix/sources.nix; imports = import ../nix/sources.nix;
edoproPackage = import ./applications/edopro.nix;
unstable = import imports.nixpkgs-unstable { config.allowUnfree = true; }; unstable = import imports.nixpkgs-unstable { config.allowUnfree = true; };
in { in {
nixpkgs.overlays = [ nixpkgs.overlays = [
@ -14,6 +15,9 @@ in {
cached-nix-shell = callPackage imports.cached-nix-shell { }; cached-nix-shell = callPackage imports.cached-nix-shell { };
easy-purescript-nix = callPackage imports.easy-purescript-nix { }; 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 { }; all-hies = import imports.all-hies { };
snack = (import imports.snack).snack-exe; snack = (import imports.snack).snack-exe;
@ -21,6 +25,7 @@ in {
brave = unstable.brave; brave = unstable.brave;
vscodium = unstable.vscodium; vscodium = unstable.vscodium;
deno = unstable.deno; deno = unstable.deno;
dotnet-sdk = dotnet-sdk_3;
}) })
]; ];