From 88949116bc1b665f67610488be409b6fffef2105 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Tue, 16 Jun 2020 12:21:42 +0200 Subject: [PATCH] package colors --- default.nix | 3 +-- pkgs/colors/default.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 pkgs/colors/default.nix diff --git a/default.nix b/default.nix index 0e0b03d..70299a8 100644 --- a/default.nix +++ b/default.nix @@ -14,8 +14,7 @@ modules = import ./modules; # NixOS modules overlays = import ./overlays; # nixpkgs overlays - # some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { }; - # ... + colors = pkgs.callPackage ./pkgs/colors { }; rank_photos = pkgs.callPackage ./pkgs/rank_photos { }; JAVMovieScraper = pkgs.callPackage ./pkgs/JAVMovieScraper { }; diff --git a/pkgs/colors/default.nix b/pkgs/colors/default.nix new file mode 100644 index 0000000..6dffdc4 --- /dev/null +++ b/pkgs/colors/default.nix @@ -0,0 +1,20 @@ +{ fetchgit, stdenv, libpng }: + +stdenv.mkDerivation { + pname = "colors-latest"; + version = "2018-04-15"; + + buildInputs = [ libpng ]; + + src = fetchgit { + url = "git://git.2f30.org/colors.git"; + rev = "8edb1839c1d2a62fbd1d4447f802997896c2b0c0"; + sha256 = "13dx6fq9m0imish8293j3wqi3ra0pahg4c2pcs3224bjcar2k0gc"; + }; + + installPhase = '' + mkdir $out + make DESTDIR=$out PREFIX="" MANPREFIX="/share/man/" install + ''; + +}