Skip to content

Instantly share code, notes, and snippets.

nix-build idea-ultimate.nix
unpacking 'https://github.com/nixos/nixpkgs/archive/4d2dd155461.tar.gz'...
these derivations will be built:
/nix/store/3c9f8igscqahra2l8jzhcgk0igbcqqcn-idea-ultimate.desktop.drv
/nix/store/7xx8bnrhbgxqkfykrzy1xpjbxb0zsxln-download_file?file_path=jbrsdk-11_0_4-osx-x64-b520.11.tar.gz.drv
/nix/store/c4cdhy5161jiw7nkbi34sdridd9i5xpc-jetbrainsjdk-520.11.drv
/nix/store/zvlz7lpi2vpsdbkbldb6fgpsq4zbyv9s-download_file?file_path=jbrsdk-11_0_2-osx-x64-b485.1.tar.gz.drv
/nix/store/d81ay1ssix632lin2y7mag6137n44mlz-jetbrainsjdk-485.1.drv
/nix/store/21p1203xma227z85lszd8hd4k73z4jss-idea-ultimate-2019.2.4.drv
these paths will be fetched (170.72 MiB download, 880.98 MiB unpacked):
@ldeck
ldeck / config.nix
Created December 26, 2019 20:55
nix problem when attempting to override jetbrains jdk for idea-ultimate
{
allowUnfree = true;
packageOverrides = pkgs: with pkgs; rec {
myJetbrainsJdk = pkgs.jetbrains.jdk.overrideAttrs (oldAttrs: rec {
version = "520.11";
src = pkgs.fetchurl {
url = "https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbrsdk-11_0_4-osx-x64-b520.11.tar.gz";
sha256 = "0d1qwbssc8ih62rlfxxxcn8i65cjgycdfy1dc1b902j46dqjkq9z";
};
@ldeck
ldeck / magit-duet-commit.el
Last active September 12, 2017 10:02 — forked from jasonm23/magit-duet-commit.el
Use Magit and Emacs with git-duet
(require 'dash)
(require 'magit)
(defvar magit-duet--default-commit-popup-actions nil
"Store the magit-commit-popup here for
de-initializing. magit-duet-commit")
(defun magit-duet-commit (&optional args)
"Create a new duet commit"
(interactive (if current-prefix-arg
@ldeck
ldeck / brewv
Last active December 29, 2015 23:19 — forked from MattiSG/brewv
#!/bin/bash
#
# Installs the previous version of a Homebrew formula
#
# Usage: brewv formula_name desired_version
if [ $# -ne 2 ]
then
echo "Usage: $0 <formula_name> <desired_version>";
exit 0;
@ldeck
ldeck / JarResourceRequestHandler.java
Created August 19, 2011 14:40 — forked from hprange/JarResourceRequestHandler.java
Experimental ResourceRequestHandler implementation to handle resources inside JARs.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;