mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
setserial: reimplement using mkDerivation
This commit is contained in:
parent
c844b6d041
commit
2a752ac760
2 changed files with 12 additions and 21 deletions
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -2972,7 +2972,7 @@ let
|
|||
|
||||
seccure = callPackage ../tools/security/seccure { };
|
||||
|
||||
setserial = builderDefsPackage (callPackage ../tools/system/setserial) { };
|
||||
setserial = callPackage ../tools/system/setserial { };
|
||||
|
||||
seqdiag = pythonPackages.seqdiag;
|
||||
|
||||
|
|
Loading…
Reference in a new issue