mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
741 B
Nix
31 lines
741 B
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, libGL, libGLU, freeglut, libX11 }:
|
|
|
|
let
|
|
version = "2018-04-19";
|
|
in stdenv.mkDerivation rec {
|
|
pname = "twilight";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tweakoz";
|
|
repo = "twilight";
|
|
rev = "43f21d15c2a8923c9d707bdf3789f480bfd4b36d";
|
|
sha256 = "0mmmi4jj8yd8wnah6kx5na782sjycszgzim33dfalr0ph361m4pz";
|
|
};
|
|
|
|
buildInputs = [ libGL libGLU freeglut libX11 ];
|
|
|
|
installPhase = ''
|
|
install -Dm755 twilight $out/bin/twilight
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Redo of IRIX twilight backdrop in old school OpenGL";
|
|
homepage = src.meta.homepage;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
};
|
|
}
|