Skip to content

Instantly share code, notes, and snippets.

with import <nixpkgs> {};
stdenv.mkDerivation {
name = "VulkanExamples";
buildDepends = [ cmake libxcb pkgconfig ];
}
@cleverca22
cleverca22 / default.nix
Last active May 10, 2017 00:57 — forked from nh2/almost-works-only-glusterfind-fails.nix
nix gluster python scripts packaging
with import <nixpkgs> { config = {}; };
callPackage ./glusterfs.nix {}
@cleverca22
cleverca22 / configuration.nix
Last active February 5, 2024 00:06
NixOS virtualbox guest additions
# ...
virtualisation.virtualbox.guest.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
linuxPackages = pkgs.linuxPackages // {
virtualboxGuestAdditions = pkgs.callPackage ./virtualbox-guest.nix {};
};
};
# ...
let
pkgs = import <nixpkgs> {};
in
pkgs.pkgsi686Linux.stdenv.mkDerivation rec {
name = "scyther-${version}";
version = "1.1.3";
src = pkgs.fetchFromGitHub {
owner = "cascremers";
repo = "scyther";
rev = "v${version}";
{ config, pkgs, ... }:
# Custom packages
let
mozillaPkgsDir = (import <nixpkgs>{config={};}).fetchFromGitHub {
owner = "Infinisil";
repo = "nixpkgs-mozilla";
rev = "d13abfc71b2bbc6a6effda0b598c82b79c5e6512";
sha256 = "0panppfq354qgdq1hf8dimdmmfz36s85nfn4c6ila75icrsd1mx8";
fetchSubmodules = true;
{ ... }:
{
boot.loader.grub.extraConfig = ''
insmod setpci;
setpci -s "00:17.0" 3e.b=8;
setpci -s "02:00.0" 04.b=7;
'';
}
{ pkgs ? import <nixpkgs> {}
, cairo ? pkgs.cairo
, fetchurl ? pkgs.fetchurl
, glib ? pkgs.glib
, patchelf ? pkgs.patchelf
, stdenv ? pkgs.stdenv
, xorg ? pkgs.xorg
, nss
, nspr
, gnome3
{ stdenv, fetchurl, unzip, interface, writeText, jre }:
let allSight = writeText "Allsight.svg" (builtins.readFile ./Allsight.svg);
swoosh = writeText "swoosh.svg" (builtins.readFile ./swoosh.svg);
in stdenv.mkDerivation {
name = "static-assets";
phases = [ "unpackPhase" "installPhase" ];
buildInputs = [ jre unzip ];
installPhase = ''
mkdir -p $out
cp ${allSight} $out/Allsight.svg
{ stdenv, fetchurl, unzip, interface, writeText, jre, zopfli }:
stdenv.mkDerivation {
name = "static-assets";
phases = [ "unpackPhase" "installPhase" ];
buildInputs = [ jre unzip ];
installPhase = ''
mkdir -p $out/share
cp ${./Allsight.svg} $out/Allsight.svg
cp ${./swoosh.svg} $out/swoosh.svg
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "emojicode-0.6";
src = fetchFromGitHub {
owner = "emojicode";
repo = "emojicode";
sha256 = "0v5r481xhjc3kdk9a49yi9lqnd6gxq5iws4d65dcx43mw3wz38sj";
rev = "5d655df6b7f7ffa13c4addfc140ef83d695381ca";
};