Hi NixOS developers,

I've started using NixOS a couple days ago and found out there is no package
for icarus verilog yet. After a bit of trial and error, I've managed to
create a package definition for it, which I'm attaching as a patch.

Please review and send me any comments, or if it needs any minor change,
just fix it and submit on my behalf.

Thanks!

-- 
Greetz, Antonio Vargas Gonzalez aka winden of rgba^ntw^bg

http://winden.wordpress.com/
[email protected]

Every day, every year
you have to work
you have to study
you have to scene.
Index: pkgs/applications/science/electronics/verilog/default.nix
===================================================================
--- pkgs/applications/science/electronics/verilog/default.nix   (revision 0)
+++ pkgs/applications/science/electronics/verilog/default.nix   (revision 0)
@@ -0,0 +1,21 @@
+{stdenv, fetchurl, gperf, flex, bison} :
+stdenv.mkDerivation rec {
+  name = "verilog-0.9.3";
+
+  src = fetchurl {
+    url = "mirror://sourceforce/${name}.tar.gz";
+    sha256 = 
"dd68c8ab874a93805d1e93fa76ee1e91fc0c7b20822ded3e57b6536cd8c0d1ba";
+  };
+
+  buildInputs = [ gperf flex bison];
+
+  configureFlags = [ ];
+
+  meta = {
+    description = "Verilog compiler";
+    homepage = http://www.icarus.com;
+    license = "GPLv2+";
+    maintainers = with stdenv.lib.maintainers; [viric];
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix     (revision 24849)
+++ pkgs/top-level/all-packages.nix     (working copy)
@@ -1257,6 +1257,8 @@
     inherit pciutils libx86 zlib;
   };
 
+  verilog = callPackage ../applications/science/electronics/verilog {};
+
   viking = callPackage ../applications/misc/viking { };
 
   vncrec = builderDefsPackage ../tools/video/vncrec {
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to