Skip to content

Commit

Permalink
Switch to my cosmopolitan repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jacereda committed Nov 9, 2021
1 parent 72a2d81 commit d056819
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{ pkgs ? import (fetchTarball {
name = "nixpkgs";
url = "https://github.com/NixOS/nixpkgs/archive/fa90ef8.tar.gz";
sha256 = "0nfazdiga80nks55jd7jxg0vxv0v7pispizx9v8r0l2ik9qgx70b";
}) {}
{ pkgs ? import <nixpkgs> {}
}:
with pkgs;
{
shellEnv =
let
# cosmopolitan-local = callPackage ../cosmopolitan/default.nix {};
cosmopolitan-src = fetchTarball {
name = "cosmopolitan";
url = "https://github.com/jacereda/cosmopolitan/archive/7df37b5.tar.gz";
sha256 = "1pl4d5w2kmn08ysmf8xhvg5n7smal253jw1anjnwncf1na1gawrg";
};
cosmopolitan = callPackage cosmopolitan-src {};
mylibs = with xorg; [ glibc libGL libX11 libXcursor libXrender libxkbcommon ];
in
stdenv.mkDerivation {
name = "shell-environment";
nativeBuildInputs = with pkgs; [ pkg-config wayland-protocols gdb clang-tools cosmopolitan ];
nativeBuildInputs = with pkgs; [ gdb clang-tools cosmopolitan ];
buildInputs = mylibs;
LD_LIBRARY_PATH = lib.makeLibraryPath mylibs;
};

0 comments on commit d056819

Please sign in to comment.