Skip to content

Instantly share code, notes, and snippets.

# nix eval -f modules.nix
let
lib = import <nixpkgs/lib>;
eval = (import <nixpkgs/lib/modules.nix> { inherit lib; }).evalModules {
modules = [
({ lib, ... }: with lib; {
options.roles.a = mkOption {
type = types.str;
};
})
with import (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz) { };
python3Packages.buildPythonApplication {
pname = "soundcraft-utils";
version = "0.0.1";
src = ./.;
nativeBuildInputs = [
wrapGAppsHook
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "foo";
builder = builtins.toFile "builder.sh" ''
echo "foo" > $out
'';
}
{ pkgs ? import <nixpkgs> {} }:
let
myEmacs = pkgs.emacs;
overrides = self: super: {
flymake = super.flymake.override {
elpaBuild = args: super.elpaBuild (args // {
src = (builtins.fetchGit {
url = "[email protected]:flymake/emacs-flymake.git";
rev = "8701c806d5e8f4e2c6f7dea461273482ad89c029";
ref = "master";
{ pkgs ? import <nixpkgs> {} }:
let
myEmacs = pkgs.emacs;
overrides = self: super: {
flymake = super.flymake.overrideAttrs (oa: {
src = builtins.fetchGit {
url = "[email protected]:flymake/emacs-flymake.git";
rev = "8701c806d5e8f4e2c6f7dea461273482ad89c029";
ref = "master";
};
let
overlay = self: super: {
haskellPackages = with self.haskell.lib;
super.haskell.packages.ghc865.override (old: {
overrides = self.lib.composeExtensions (old.overrides or (_: _: { })) (hself: hsuper: {
cabal2nix = super.haskellPackages.cabal2nix;
hpack = dontCheck (hself.callHackage "hpack" "0.31.2" {});
stack2cabal = hself.stack2cabal; #redundant right now
});
});
let
overlay = self: super: {
haskellPackages = with self.haskell.lib; super.haskellPackages.override (old: {
overrides = self.lib.composeExtensions (old.overrides or (_: _: {})) (hself: hsuper: {
hello = overrideCabal hsuper.hello (olddrv: {
enableExecutableProfiling = true;
});
});
});
};
let
args = {
nativeOnly = true;
withPrimus = true;
extraPkgs = p: with p; [
hostname
bumblebee
file
glxinfo
strace

CPH NixOS meetup 2020

As 2019 meetups are wrapped up, we would like to wish you happy holidays and want to briefly welcome you to the upcoming 2020 meetups.

The first meetup will be on the 5th of February, not the 1st of January, and the first Wednesday of every month thereafter. We will strive to have a talk or demo planned for every second meetup, starting with the first meetup on the 5th of February.

We hope many of you have neat/cool/awesome experiences/things/use cases to share with the group, and will continuously reach out for suggestions, potential presenters, etc. Feel free to reach out to us if you have feedback or something you wish to share with the group -- everyone is welcome!

We're excited to see you again next year, and hope to make the meetup even better. Bring your friends and coworkers and we'll make 2020 the year of NixOS (on everything!) :-D

{ pkgs ? import <nixpkgs> {} }:
# From https://github.com/kfahy/slack-disable-wysiwyg-bookmarklet/blob/master/bin/patch-desktop-app
let patch = ''
(() => {
const disableWysiwygEditor = redux => {
const {
wysiwyg_composer,
wysiwyg_composer_ios,