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: 46adfec9f929
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: 489a14add9a8
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Apr 5, 2018

  1. apg: Widen meta.platforms from linux to unix

    (cherry picked from commit b206311)
    thefloweringash authored and LnL7 committed Apr 5, 2018
    Copy the full SHA
    d8a173a View commit details
  2. apg: Fix build on case insensitive filesystems

    (cherry picked from commit 7d55577)
    thefloweringash authored and LnL7 committed Apr 5, 2018
    Copy the full SHA
    489a14a View commit details
Showing with 16 additions and 2 deletions.
  1. +5 −2 pkgs/tools/security/apg/default.nix
  2. +11 −0 pkgs/tools/security/apg/phony-install-target.patch
7 changes: 5 additions & 2 deletions pkgs/tools/security/apg/default.nix
Original file line number Diff line number Diff line change
@@ -10,7 +10,10 @@ stdenv.mkDerivation rec {
'';
makeFlags = stdenv.lib.optionals stdenv.isDarwin ["CC=cc"];

patches = [ ./apg.patch ];
patches = [
./apg.patch
./phony-install-target.patch
];

postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile
@@ -64,6 +67,6 @@ stdenv.mkDerivation rec {
homepage = http://www.adel.nursat.kz/apg/;
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
};
}
11 changes: 11 additions & 0 deletions pkgs/tools/security/apg/phony-install-target.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff -ur a/Makefile b/Makefile
--- a/Makefile 2003-08-08 00:40:39.000000000 +0900
+++ b/Makefile 2018-04-05 22:29:39.284191020 +0900
@@ -142,6 +142,7 @@
strip ${CS_PROGNAME}
strip ${BFM_PROGNAME}

+.PHONY: install
install:
if test -x ./apg; then \
./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \