Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 43dd81b3fe86
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4701e1121656
Choose a head ref
  • 5 commits
  • 3 files changed
  • 3 contributors

Commits on Jul 5, 2020

  1. Copy the full SHA
    caa21c7 View commit details

Commits on Jul 28, 2020

  1. unicorn-emulator: 1.0.1 -> 1.0.2-rc4

    Also adds tests
    kristoff3r committed Jul 28, 2020
    Copy the full SHA
    8b633d8 View commit details
  2. python: pwntools: 4.1.1 -> 4.2.1

    The previous update broke the build, this updates fixes it
    kristoff3r committed Jul 28, 2020
    Copy the full SHA
    edfcd37 View commit details

Commits on Jul 30, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    16a63d0 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4701e11 View commit details
Showing with 70 additions and 19 deletions.
  1. +14 −6 pkgs/development/libraries/unicorn-emu/default.nix
  2. +49 −8 pkgs/development/python-modules/pwntools/default.nix
  3. +7 −5 pkgs/misc/vim-plugins/overrides.nix
20 changes: 14 additions & 6 deletions pkgs/development/libraries/unicorn-emu/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{ stdenv, fetchurl, pkgconfig, python }:
{ stdenv, fetchurl, pkgconfig, python, cmocka, hexdump, writeScriptBin, binutils-unwrapped }:

stdenv.mkDerivation rec {
pname = "unicorn-emulator";
version = "1.0.1";
version = "1.0.2-rc4";

src = fetchurl {
url = "https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz";
sha256 = "0z01apwmvhvdldm372ww9pjfn45awkw3m90c0h4v0nj0ihmlysis";
sha256 = "05w43jq3r97l3c8ggc745ai8m5l93p1b6q6cfp1zwzz6hl5kifiv";
};

configurePhase = '' patchShebangs make.sh '';
buildPhase = '' ./make.sh '' + stdenv.lib.optionalString stdenv.isDarwin "macos-universal-no";
installPhase = '' env PREFIX=$out ./make.sh install '';
PREFIX = placeholder "out";
MACOS_UNIVERSAL = stdenv.lib.optionalString stdenv.isDarwin "no";
NIX_CFLAGS_COMPILE = "-Wno-error";

doCheck = !stdenv.isDarwin;

checkInputs = [
cmocka
hexdump
python.pkgs.setuptools
];

nativeBuildInputs = [ pkgconfig python ];
enableParallelBuilding = true;
57 changes: 49 additions & 8 deletions pkgs/development/python-modules/pwntools/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,60 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, Mako, packaging, pysocks, pygments, ROPGadget
, capstone, paramiko, pip, psutil
, pyelftools, pyserial, dateutil
, requests, tox, unicorn, intervaltree, fetchpatch }:
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, Mako
, packaging
, pysocks
, pygments
, ROPGadget
, capstone
, paramiko
, pip
, psutil
, pyelftools
, pyserial
, dateutil
, requests
, tox
, unicorn
, intervaltree
, fetchpatch
}:

buildPythonPackage rec {
version = "4.1.1";
version = "4.2.1";
pname = "pwntools";

src = fetchPypi {
inherit pname version;
sha256 = "694ce7a6cfca0ad40eae36c1d2663c44eb953f84785c63daa9752b4dfa7f39d8";
sha256 = "1fh7sq9wrcfvn44qryln9cyg99pilvyq9bp80758lgdd6ss6hdqd";
};

propagatedBuildInputs = [ Mako packaging pysocks pygments ROPGadget capstone paramiko pip psutil pyelftools pyserial dateutil requests tox unicorn intervaltree ];
# Upstream has set an upper bound on unicorn because of https://github.com/Gallopsled/pwntools/issues/1538,
# but since that is a niche use case and it requires extra work to get unicorn 1.0.2rc3 to work we relax
# the bound here. Check if this is still necessary when updating!
postPatch = ''
sed -i 's/unicorn>=1.0.2rc1,<1.0.2rc4/unicorn>=1.0.2rc1/' setup.py
'';

propagatedBuildInputs = [
Mako
packaging
pysocks
pygments
ROPGadget
capstone
paramiko
pip
psutil
pyelftools
pyserial
dateutil
requests
tox
unicorn
intervaltree
];

doCheck = false; # no setuptools tests for the package

12 changes: 7 additions & 5 deletions pkgs/misc/vim-plugins/overrides.nix
Original file line number Diff line number Diff line change
@@ -61,16 +61,18 @@ self: super: {
};

LanguageClient-neovim = let
version = "0.1.157";
LanguageClient-neovim-src = fetchurl {
url = "https://github.com/autozimu/LanguageClient-neovim/archive/${version}.tar.gz";
sha256 = "1ccq5akkm8n612ni5g7w7v5gv73g7p1d9i92k0bnsy33fvi3pmnh";
version = "0.1.158";
LanguageClient-neovim-src = fetchFromGitHub {
owner = "autozimu";
repo = "LanguageClient-neovim";
rev = version;
sha256 = "14xggdgp5qw4yj4gdsgr8s2nxm098m88q8rx6fzd2j20njv308ki";
};
LanguageClient-neovim-bin = rustPlatform.buildRustPackage {
name = "LanguageClient-neovim-bin";
src = LanguageClient-neovim-src;

cargoSha256 = "0r3f7sixkvgfrw0j81bxj1jpam5si9dnivrw63s29cvjxrdbnmqz";
cargoSha256 = "0nin1gydf6q4mmxljm2xbd1jfl3wpzx3pvlqwspahblv9j2bf5ck";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];

# FIXME: Use impure version of CoreFoundation because of missing symbols.