3
0
Fork 0
forked from mirrors/nixpkgs

setserial: reimplement using mkDerivation

This commit is contained in:
Joachim Fasting 2015-06-15 14:27:01 +02:00
parent c844b6d041
commit 2a752ac760
2 changed files with 12 additions and 21 deletions

View file

@ -1,33 +1,24 @@
a @ { groff, ... } :
let
fetchurl = a.fetchurl;
{ stdenv, fetchurl, groff }:
stdenv.mkDerivation rec {
name = "setserial-${version}";
version = "2.17";
version = a.lib.attrByPath ["version"] "2.17" a;
buildInputs = with a; [
groff
];
in
rec {
src = fetchurl {
url = "mirror://sourceforge/setserial/setserial-${version}.tar.gz";
url = "mirror://sourceforge/setserial/${name}.tar.gz";
sha256 = "0jkrnn3i8gbsl48k3civjmvxyv9rbm1qjha2cf2macdc439qfi3y";
};
inherit buildInputs;
configureFlags = [];
buildInputs = [ groff ];
installFlags = "DESTDIR=$out";
installFlags = ''DESTDIR=$(out)'';
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "patchPath" "doMakeInstall"];
patchPath = a.fullDepEntry (''
postConfigure = ''
sed -e s@/usr/man/@/share/man/@ -i Makefile
'') ["minInit" "doUnpack" "doConfigure"];
'';
neededDirs = ["$out/bin" "$out/share/man/man8"];
preInstall = ''mkdir -p "$out/bin" "$out/share/man/man8"'';
name = "setserial-" + version;
meta = {
description = "Serial port configuration utility";
};

View file

@ -2972,7 +2972,7 @@ let
seccure = callPackage ../tools/security/seccure { };
setserial = builderDefsPackage (callPackage ../tools/system/setserial) { };
setserial = callPackage ../tools/system/setserial { };
seqdiag = pythonPackages.seqdiag;