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: c88d0fd7a8a1
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: c83e13315caa
Choose a head ref
  • 5 commits
  • 4 files changed
  • 2 contributors

Commits on Jul 22, 2020

  1. Copy the full SHA
    cde6761 View commit details

Commits on Jul 27, 2020

  1. mprime: 29.4b7 -> 29.8b7

    peterhoeg committed Jul 27, 2020
    Copy the full SHA
    b278ccc View commit details
  2. Merge pull request #93962 from NixOS/mprime

    mprime: 29.4b7 -> 29.8b7
    peterhoeg authored Jul 27, 2020
    Copy the full SHA
    f1c2f88 View commit details
  3. Merge pull request #93625 from NixOS/f/qemu

    qemu: drop invalid and redundant qemu.desktop
    peterhoeg authored Jul 27, 2020

    Verified

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

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c83e133 View commit details
Showing with 44 additions and 71 deletions.
  1. +12 −9 pkgs/applications/virtualization/qemu/default.nix
  2. +29 −18 pkgs/tools/misc/mprime/default.nix
  3. +0 −41 pkgs/tools/misc/mprime/makefile.patch
  4. +3 −3 pkgs/tools/misc/wlr-randr/default.nix
21 changes: 12 additions & 9 deletions pkgs/applications/virtualization/qemu/default.nix
Original file line number Diff line number Diff line change
@@ -133,15 +133,18 @@ stdenv.mkDerivation rec {
dontWrapGApps = true;

postFixup = ''
# copy qemu-ga (guest agent) to separate output
mkdir -p $ga/bin
cp $out/bin/qemu-ga $ga/bin/
'' + optionalString gtkSupport ''
# wrap GTK Binaries
for f in $out/bin/qemu-system-*; do
wrapGApp $f
done
'';
# the .desktop is both invalid and pointless
rm $out/share/applications/qemu.desktop
# copy qemu-ga (guest agent) to separate output
mkdir -p $ga/bin
cp $out/bin/qemu-ga $ga/bin/
'' + optionalString gtkSupport ''
# wrap GTK Binaries
for f in $out/bin/qemu-system-*; do
wrapGApp $f
done
'';

# Add a ‘qemu-kvm’ wrapper for compatibility/convenience.
postInstall = ''
47 changes: 29 additions & 18 deletions pkgs/tools/misc/mprime/default.nix
Original file line number Diff line number Diff line change
@@ -1,45 +1,56 @@
{ stdenv, lib, fetchurl, unzip, curl, hwloc, gmp }:

let
srcDir =
if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
else if stdenv.hostPlatform.system == "i686-linux" then "linux"
else if stdenv.hostPlatform.system == "x86_64-darwin" then "macosx64"
else throwSystem;
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
gwnum =
if stdenv.hostPlatform.system == "x86_64-linux" then "make64"
else if stdenv.hostPlatform.system == "i686-linux" then "makefile"
else if stdenv.hostPlatform.system == "x86_64-darwin" then "makemac"
else throwSystem;

srcDir = {
x86_64-linux = "linux64";
i686-linux = "linux";
x86_64-darwin = "macosx64";
}."${stdenv.hostPlatform.system}" or throwSystem;

gwnum = {
x86_64-linux = "make64";
i686-linux = "makefile";
x86_64-darwin = "makemac";
}."${stdenv.hostPlatform.system}" or throwSystem;
in

stdenv.mkDerivation rec {
pname = "mprime";
version = "29.4b7";
version = "29.8b7";

src = fetchurl {
url = "https://www.mersenne.org/ftp_root/gimps/p95v${lib.replaceStrings ["."] [""] version}.source.zip";
sha256 = "0idaqm46m4yis7vl014scx57lpccvjbnyy79gmj8caxghyajws0m";
sha256 = "0x5dk2dcppfnq17n79297lmn6p56rd66cbwrh1ds4l8r4hmwsjaj";
};

unpackCmd = "unzip -d src -q $curSrc || true";
postPatch = ''
sed -i ${srcDir}/makefile \
-e 's/^LFLAGS =.*//'
substituteInPlace ${srcDir}/makefile \
--replace '-Wl,-Bstatic' "" \
--replace '-Wl,-Bdynamic' ""
'';

sourceRoot = ".";

nativeBuildInputs = [ unzip ];

buildInputs = [ curl hwloc gmp ];

patches = [ ./makefile.patch ];
enableParallelBuilding = true;

buildPhase = ''
make -C gwnum -f ${gwnum}
make -C ${srcDir}
'';

installPhase = ''
install -D ${srcDir}/mprime $out/bin/mprime
install -Dm555 -t $out/bin ${srcDir}/mprime
'';
meta = {

meta = with lib; {
description = "Mersenne prime search / System stability tester";
longDescription = ''
MPrime is the Linux command-line interface version of Prime95, to be run
@@ -50,7 +61,7 @@ stdenv.mkDerivation rec {
homepage = "https://www.mersenne.org/";
# Unfree, because of a license requirement to share prize money if you find
# a suitable prime. http://www.mersenne.org/legal/#EULA
license = stdenv.lib.licenses.unfree;
license = licenses.unfree;
# Untested on linux-32 and osx. Works in theory.
platforms = ["i686-linux" "x86_64-linux" "x86_64-darwin"];
};
41 changes: 0 additions & 41 deletions pkgs/tools/misc/mprime/makefile.patch

This file was deleted.

6 changes: 3 additions & 3 deletions pkgs/tools/misc/wlr-randr/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "wlr-randr";
version = "unstable-2019-03-21";
version = "0.1.0";

src = fetchFromGitHub {
owner = "emersion";
repo = pname;
rev = "c4066aa3249963dc7877119cffce10f3fa8b6304";
sha256 = "1ahw4sv07xg5rh9vr7j28636iaxs06vnybm3li6y8dz2sky7hk88";
rev = "v${version}";
sha256 = "10c8zzp78s5bw34vvjhilipa28bsdx3jbyhnxgp8f8kawh3cvgsc";
};

nativeBuildInputs = [ meson ninja cmake pkgconfig ];