From b13370a26e274a01684d7b60939418929a8e3a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Montero?= Date: Wed, 31 Aug 2022 02:28:43 -0600 Subject: [PATCH] modifia shenv de altera. ahora tiene nightmode --- home/shenvs/altera.nix | 59 +++++++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/home/shenvs/altera.nix b/home/shenvs/altera.nix index ee7f272..e554538 100644 --- a/home/shenvs/altera.nix +++ b/home/shenvs/altera.nix @@ -1,36 +1,47 @@ { lib, pkgs, ... }: with lib; { + static = true; namespaced = true; packages = with pkgs; [ (quartus-prime-lite.override { supportedDevices = [ "Cyclone V" ]; }) + binutils + gcc + gnumake + gtkwave + verilator ]; - # Evita GC - hm.xdg.configFile."quartus-inputs".text = let - inherit (pkgs) requireFile; - homepage = "https://fpgasoftware.intel.com"; - version = "20.1.1.720"; - url = "${homepage}/${versions.majorMinor version}/?edition=lite&platform=linux"; + hm = { + # QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries. + home.sessionVariables.LD_LIBRARY_PATH = "${pkgs.gtk2}/lib"; - inputs = [ - (requireFile { - name = "QuartusLiteSetup-${version}-linux.run"; - sha256 = "0mjp1rg312dipr7q95pb4nf4b8fwvxgflnd1vafi3g9cshbb1c3k"; - inherit url; - }) + # Evita GC + xdg.configFile."quartus-inputs".text = let + inherit (pkgs) requireFile; + homepage = "https://fpgasoftware.intel.com"; + version = "20.1.1.720"; + url = "${homepage}/${versions.majorMinor version}/?edition=lite&platform=linux"; - (requireFile { - name = "ModelSimSetup-${version}-linux.run"; - sha256 = "1cqgv8x6vqga8s4v19yhmgrr886rb6p7sbx80528df5n4rpr2k4i"; - inherit url; - }) + inputs = [ + (requireFile { + name = "QuartusLiteSetup-${version}-linux.run"; + sha256 = "0mjp1rg312dipr7q95pb4nf4b8fwvxgflnd1vafi3g9cshbb1c3k"; + inherit url; + }) - (requireFile { - name = "cyclonev-${version}.qdz"; - sha256 = "11baa9zpmmfkmyv33w1r57ipf490gnd3dpi2daripf38wld8lgak"; - inherit url; - }) - ]; - in concatStringsSep "\n" inputs; + (requireFile { + name = "ModelSimSetup-${version}-linux.run"; + sha256 = "1cqgv8x6vqga8s4v19yhmgrr886rb6p7sbx80528df5n4rpr2k4i"; + inherit url; + }) + + (requireFile { + name = "cyclonev-${version}.qdz"; + sha256 = "11baa9zpmmfkmyv33w1r57ipf490gnd3dpi2daripf38wld8lgak"; + inherit url; + }) + ]; + in concatStringsSep "\n" inputs; + }; }