commit 5bead9f37a3b4c5f214f8feb8446d6d08605125e
parent eb800504a903ce36091a1bd9be34bd7abeb1674a
Author: William Casarin <jb55@jb55.com>
Date: Sun, 22 Sep 2019 10:02:25 -0700
cleanup nix
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/default.nix b/default.nix
@@ -1,8 +1,10 @@
-{ stdenv
-, SDL2
-, mesa
+{ nixpkgs ? import <nixpkgs> {}
}:
+let
+ pkgs = nixpkgs.pkgs;
+ stdenv = pkgs.stdenv;
+in
stdenv.mkDerivation rec {
name = "polyadvent";
version = "0.1";
@@ -11,7 +13,7 @@ stdenv.mkDerivation rec {
makeFlags = "PREFIX=$(out)";
- buildInputs = [ SDL2 mesa ];
+ buildInputs = with pkgs; [ SDL2 mesa ];
meta = with stdenv.lib; {
description = "Procedural low poly fun";
diff --git a/shell.nix b/shell.nix
@@ -1,2 +0,0 @@
-{ }:
-with import <nixpkgs> {}; callPackage ./default.nix { }