diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-11 10:39:48 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-11 10:39:48 +0100 |
commit | 93fea40a4a1d90eb6c7651f3aa36214fbb2bdd57 (patch) | |
tree | 6c05211fe7e2fb513ab21550f8c36dba370582c9 | |
parent | 31a38b9f53fdaf1bd1141bc6dbf777605dfed590 (diff) | |
download | Nix-93fea40a4a1d90eb6c7651f3aa36214fbb2bdd57.tar.gz Nix-93fea40a4a1d90eb6c7651f3aa36214fbb2bdd57.tar.zst Nix-93fea40a4a1d90eb6c7651f3aa36214fbb2bdd57.zip |
Add some missing tools
-rw-r--r-- | default.nix | 77 |
1 files changed, 74 insertions, 3 deletions
diff --git a/default.nix b/default.nix index 1f50aa3..5268565 100644 --- a/default.nix +++ b/default.nix | |||
@@ -548,9 +548,76 @@ let | |||
548 | ''; | 548 | ''; |
549 | }; | 549 | }; |
550 | 550 | ||
551 | mypkgs.lesspipe = lesspipe.overrideAttrs(old: { | 551 | mypkgs.lesspipe = lesspipe.overrideAttrs(old: { |
552 | configureFlags = (old.configureFlags or []) ++ [ "--yes" ]; | 552 | configureFlags = (old.configureFlags or []) ++ [ "--yes" ]; |
553 | }); | 553 | }); |
554 | |||
555 | mypkgs.genius = stdenv.mkDerivation rec { | ||
556 | name = "genius-${version}"; | ||
557 | version = "1.0.24"; | ||
558 | src = fetchurl { | ||
559 | url = "https://download.gnome.org/sources/genius/1.0/${name}.tar.xz"; | ||
560 | sha256 = "772f95f6ae4716d39bb180cd50e8b6b9b074107bee0cd083b825e1e6e55916b6"; | ||
561 | }; | ||
562 | buildInputs = [ | ||
563 | mpfr glib hicolor-icon-theme gtk2 intltool gnome-doc-utils python3 gnome2.gtksourceview | ||
564 | autoconf automake libtool ncurses readline pkg-config | ||
565 | ]; | ||
566 | preConfigure = '' | ||
567 | autoreconf -fi | ||
568 | ''; | ||
569 | preBuild = '' | ||
570 | sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool | ||
571 | ''; | ||
572 | }; | ||
573 | |||
574 | mypkgs.unicode = let | ||
575 | version = "12.0"; | ||
576 | version-full = "${version}.0"; | ||
577 | files = { | ||
578 | emoji-data = fetchurl { | ||
579 | url = "http://www.unicode.org/Public/emoji/${version}/emoji-data.txt"; | ||
580 | sha256 = "03sf7h1d6kb9m5s02lif88jsi5kjszpkfvcymaqxj8ds70ar9pgv"; | ||
581 | }; | ||
582 | emoji-sequences = fetchurl { | ||
583 | url = "http://www.unicode.org/Public/emoji/${version}/emoji-sequences.txt"; | ||
584 | sha256 = "1hghki2rn3n7m4lwpwi2a5wrsf2nij4bxga9ldabx4g0g2k23svs"; | ||
585 | }; | ||
586 | emoji-test = fetchurl { | ||
587 | url = "http://www.unicode.org/Public/emoji/${version}/emoji-test.txt"; | ||
588 | sha256 = "1dqd0fh999mh6naj816ni113m9dimfy3ih9nffjq2lrv9mmlgdck"; | ||
589 | }; | ||
590 | emoji-variation-sequences = fetchurl { | ||
591 | url = "http://www.unicode.org/Public/emoji/${version}/emoji-variation-sequences.txt"; | ||
592 | sha256 = "1cccwx5bl79w4c19vi5dhjqxrph92s8hihp9y8s2cqvdzmgbln7a"; | ||
593 | }; | ||
594 | emoji-zwj-sequences = fetchurl { | ||
595 | url = "http://www.unicode.org/Public/emoji/${version}/emoji-zwj-sequences.txt"; | ||
596 | sha256 = "1l791nbijmmhwa7kmvfn8gp26ban512l6mgqpz1mnbq3xm19181n"; | ||
597 | }; | ||
598 | }; | ||
599 | zippedFiles = { | ||
600 | UCD = fetchurl { | ||
601 | url = "http://www.unicode.org/Public/zipped/${version-full}/UCD.zip"; | ||
602 | sha256 = "1ighy39cjkmqnv1797wrxjz76mv1fdw7zp5j04q55bkwxsdkvrmh"; | ||
603 | }; | ||
604 | Unihan = fetchurl { | ||
605 | url = "http://www.unicode.org/Public/zipped/${version-full}/Unihan.zip"; | ||
606 | sha256 = "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf"; | ||
607 | }; | ||
608 | }; | ||
609 | in | ||
610 | pkgs.runCommand "unicode" { | ||
611 | buildInputs = [ libarchive ]; | ||
612 | } '' | ||
613 | mkdir -p $out/share/unicode | ||
614 | ${builtins.concatStringsSep "\n" (lib.attrsets.mapAttrsToList (n: u: "install -Dm644 ${u} $out/share/unicode/emoji/${n}.txt") files)} | ||
615 | ${builtins.concatStringsSep "\n" (lib.attrsets.mapAttrsToList (n: u: '' | ||
616 | install -Dm644 ${u} $out/share/unicode/${n}.zip | ||
617 | bsdtar -C "$out/share/unicode" -x -f "$out/share/unicode/${n}.zip" | ||
618 | '') zippedFiles)} | ||
619 | ''; | ||
620 | |||
554 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh | 621 | # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh |
555 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks | 622 | # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks |
556 | in | 623 | in |
@@ -609,4 +676,8 @@ in | |||
609 | inherit emacs26-nox; | 676 | inherit emacs26-nox; |
610 | inherit highlight sourceHighlight; | 677 | inherit highlight sourceHighlight; |
611 | pygmentize = python3Packages.pygments; | 678 | pygmentize = python3Packages.pygments; |
679 | inherit iftop htop; | ||
680 | inherit fetchmail; | ||
681 | inherit bc; | ||
682 | inherit cpulimit; | ||
612 | } | 683 | } |